mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-27 00:45:37 +00:00
16 lines
316 B
Nix
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
|
|
'';
|
|
|
|
}
|