direnv: init

This commit is contained in:
Alexandre Cavalheiro 2024-09-16 15:44:54 -03:00
parent 57ac56951f
commit adbf245fa6
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 20 additions and 0 deletions

View file

@ -8,6 +8,7 @@
# Import configurations for better modularity.
imports = [
./programs/alacritty.nix
./programs/direnv
./programs/emacs
./programs/fish
./programs/git.nix

View file

@ -0,0 +1,19 @@
{ ... }:
{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
config = {
whitelist = {
prefix = [
"/mnt/internal/personal/projects"
"/mnt/internal/repos"
"/mnt/internal/shared/projects"
"/mnt/internal/shared/work"
];
};
};
};
}