chore(direnv@modules): moved to modules

This commit is contained in:
2025-10-17 13:21:18 +01:00
parent de61a1fc5a
commit 8fd6c8df14
4 changed files with 29 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
_: {
home = ./home.nix;
}

View File

@@ -0,0 +1,22 @@
{
pkgs,
lib,
config,
...
}:
let
cfg = config.modules.direnv;
in
{
options.modules.direnv = {
enable = lib.mkEnableOption "direnv";
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
# enableBashIntegration = true; # see note on other shells below
enableFishIntegration = true;
nix-direnv.enable = true;
};
};
}