diff --git a/home-manager.nix b/home-manager.nix index 8833f6e..2b45b9e 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -8,6 +8,7 @@ # Import configurations for better modularity. imports = [ ./programs/alacritty.nix + ./programs/direnv ./programs/emacs ./programs/fish ./programs/git.nix diff --git a/programs/direnv/default.nix b/programs/direnv/default.nix new file mode 100644 index 0000000..e660e30 --- /dev/null +++ b/programs/direnv/default.nix @@ -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" + ]; + }; + }; + }; +}