reciproka-ops/profiles/nix-direnv.nix

30 lines
562 B
Nix
Raw Normal View History

# Nix configuration nix-direnv
2021-10-07 02:13:48 +00:00
{
2022-08-15 07:32:25 +00:00
config,
pkgs,
lib,
...
}: {
2021-10-07 02:13:48 +00:00
nix = {
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
};
# Set the environment
environment = {
systemPackages = with pkgs; [
2022-08-15 07:32:25 +00:00
direnv # A shell extension that manages your environment
nix-direnv # A fast, persistent use_nix implementation for direnv
2021-10-07 02:13:48 +00:00
];
pathsToLink = [
2022-08-15 07:32:25 +00:00
"/share/nix-direnv"
2021-10-07 02:13:48 +00:00
];
};
nixpkgs.overlays = [
2022-08-15 07:32:25 +00:00
(self: super: {nix-direnv = super.nix-direnv.override {enableFlakes = true;};})
2021-10-07 02:13:48 +00:00
];
}