diff options
author | Silas Schöffel <sils@sils.li> | 2024-06-01 18:42:08 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-06-01 18:42:08 +0200 |
commit | 5c7f4603d37a1c8b1fb79a95cd3c4b74848bbfdf (patch) | |
tree | 9425be5c49f298a40cdd6ddbb6ec032302c3eabf | |
parent | zsh: update sys-update to delete files in hms way (diff) | |
download | nix-config-5c7f4603d37a1c8b1fb79a95cd3c4b74848bbfdf.tar.gz nix-config-5c7f4603d37a1c8b1fb79a95cd3c4b74848bbfdf.zip |
direnv: init module
Diffstat (limited to '')
-rw-r--r-- | hm/default.nix | 2 | ||||
-rw-r--r-- | hm/direnv/default.nix | 6 | ||||
-rw-r--r-- | modules/hm/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/hm/sils/direnv.nix | 15 |
4 files changed, 17 insertions, 7 deletions
diff --git a/hm/default.nix b/hm/default.nix index ef3d14d..a6b3fc4 100644 --- a/hm/default.nix +++ b/hm/default.nix @@ -1,7 +1,6 @@ {nixvim, ...}: { imports = [ ../modules/hm - ./direnv ./etesync-dav #./eww ./flameshot @@ -35,6 +34,7 @@ sils = { bat.enable = true; + direnv.enable = true; firefox.enable = true; jameica.enable = true; kdeconnect.enable = true; diff --git a/hm/direnv/default.nix b/hm/direnv/default.nix deleted file mode 100644 index 3a7b8ad..0000000 --- a/hm/direnv/default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{...}: { - programs.direnv = { - enable = true; - nix-direnv.enable = true; - }; -} diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index 09fc911..3e296e2 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -1,6 +1,7 @@ {...}: { imports = [ ./bat.nix + ./direnv.nix ./firefox ./jameica.nix ./kdeconnect.nix diff --git a/modules/hm/sils/direnv.nix b/modules/hm/sils/direnv.nix new file mode 100644 index 0000000..88ee8f8 --- /dev/null +++ b/modules/hm/sils/direnv.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.direnv; +in { + options.sils.direnv.enable = lib.mkEnableOption "direnv"; + config = lib.mkIf cfg.enable { + programs.direnv = { + enable = true; + nix-direnv.enable = true; + }; + }; +} |