mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 02:15:38 +00:00
17 lines
382 B
Nix
17 lines
382 B
Nix
{ config, ... }: {
|
|
|
|
# Enables quickly entering Nix shells when changing directories
|
|
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
|
|
'';
|
|
|
|
}
|