From adbf245fa6d373b39c3b69b71cc79e83a55198ec Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Mon, 16 Sep 2024 15:44:54 -0300 Subject: [PATCH] direnv: init --- home-manager.nix | 1 + programs/direnv/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 programs/direnv/default.nix 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" + ]; + }; + }; + }; +}