dotfiles/modules/common/shell/direnv.nix
2023-03-08 17:43:30 -05:00

16 lines
316 B
Nix

{ config, ... }: {
home-manager.users.${config.user}.programs.direnv = {
enable = true;
nix-direnv.enable = true;
config = { whitelist = { prefix = [ config.dotfilesPath ]; }; };
};
# Prevent garbage collection
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
}