1
1
Fork 0
nixos/options/custom/programs/direnv.nix
Myned e41ae29c3f
direnv: fix shell integration
Signed-off-by: Myned <dev@bjork.tech>
2024-11-20 14:02:15 -06:00

26 lines
492 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.programs.direnv;
in {
options.custom.programs.direnv.enable = mkOption {default = false;};
config = mkIf cfg.enable {
# https://github.com/direnv/direnv
programs.direnv = {
enable = true;
loadInNixShell = false; # nix develop
silent = true;
};
home-manager.users.${config.custom.username} = {
programs.direnv = {
enable = true;
silent = true;
};
};
};
}