mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-26 16:24:52 +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
|
|
'';
|
|
|
|
}
|