use nixpkgs direnv module
This commit is contained in:
parent
66887f5c74
commit
186c4eb878
1 changed files with 1 additions and 20 deletions
|
@ -19,7 +19,6 @@
|
|||
gef
|
||||
gdb
|
||||
binwalk
|
||||
direnv
|
||||
sops
|
||||
nil
|
||||
nix-index
|
||||
|
@ -44,23 +43,5 @@
|
|||
};
|
||||
users.users."0xa".extraGroups = [ "wireshark" ];
|
||||
|
||||
## direnv
|
||||
programs.bash.interactiveShellInit = ''
|
||||
eval "$(direnv hook bash)"
|
||||
'';
|
||||
programs.zsh.interactiveShellInit = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
'';
|
||||
programs.fish.interactiveShellInit = ''
|
||||
direnv hook fish | source
|
||||
'';
|
||||
|
||||
# nix options for derivations to persist garbage collection
|
||||
nix.extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
environment.pathsToLink = [
|
||||
"/share/nix-direnv"
|
||||
];
|
||||
programs.direnv.enable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue