feat(pkg): setup direnv for automatic directory environments

This commit is contained in:
Pierre Martin
2024-06-21 05:17:12 +02:00
parent 6ae4b8367b
commit f0447a81cc
3 changed files with 16 additions and 0 deletions

View File

@@ -39,6 +39,14 @@
};
};
# https://github.com/nix-community/nix-direnv/
programs.direnv =
{
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
services.unclutter.enable = true;
services.gpg-agent.enable = true;
services.blueman-applet.enable = true;

View File

@@ -122,6 +122,11 @@
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# https://github.com/nix-community/nix-direnv/
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions

View File

@@ -25,6 +25,9 @@
".watsonrc"
".idea"
".vscode"
"shell.nix"
".envrc"
".direnv"
];
# see https://github.com/dandavison/delta#get-started