direnv: init
This commit is contained in:
parent
57ac56951f
commit
adbf245fa6
|
@ -8,6 +8,7 @@
|
|||
# Import configurations for better modularity.
|
||||
imports = [
|
||||
./programs/alacritty.nix
|
||||
./programs/direnv
|
||||
./programs/emacs
|
||||
./programs/fish
|
||||
./programs/git.nix
|
||||
|
|
19
programs/direnv/default.nix
Normal file
19
programs/direnv/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue