From b6d07f92d54436b395f5b34666bc6dcc9c5ebb32 Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sun, 2 Apr 2023 16:30:31 -0700 Subject: [PATCH] Added direnv configuration --- modules/suites/development/default.nix | 3 ++- modules/tools/direnv/default.nix | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/tools/direnv/default.nix diff --git a/modules/suites/development/default.nix b/modules/suites/development/default.nix index 51985df..513e6c2 100644 --- a/modules/suites/development/default.nix +++ b/modules/suites/development/default.nix @@ -15,10 +15,11 @@ in { config = mkIf cfg.enable { aa = { tools = { + direnv.enable = true; + exa.enable = true; git.enable = true; gpg.enable = true; zsh.enable = true; - exa.enable = true; }; apps = { diff --git a/modules/tools/direnv/default.nix b/modules/tools/direnv/default.nix new file mode 100644 index 0000000..005eab7 --- /dev/null +++ b/modules/tools/direnv/default.nix @@ -0,0 +1,23 @@ +{ + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.aa.tools.direnv; +in { + options.aa.tools.direnv = with lib.types; { + enable = mkEnableOption "direnv"; + }; + + config = mkIf cfg.enable { + aa.home.extraOptions = { + programs.direnv = { + enable = true; + nix-direnv.enable = true; + }; + }; + }; +}