direnv: module init

This commit is contained in:
Zynh Ludwig 2024-08-20 01:25:01 -07:00
parent 27a3ec825e
commit b3624aacf4
2 changed files with 18 additions and 0 deletions

View file

@ -22,6 +22,7 @@ in
snowhawk.tmux.enable = lib.mkDefault true;
snowhawk.tmux.sessionizer.enable = lib.mkDefault true;
snowhawk.fish.enable = lib.mkDefault true;
snowhawk.direnv.enable = lib.mkDefault true;
snowhawk.git.enable = lib.mkDefault true;
snowhawk.lazygit.enable = lib.mkDefault true;
}

17
home/modules/direnv.nix Normal file
View file

@ -0,0 +1,17 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.direnv;
in
{
options.snowhawk.direnv = {
enable = lib.mkEnableOption "direnv home-manager module";
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}