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
|
gef
|
||||||
gdb
|
gdb
|
||||||
binwalk
|
binwalk
|
||||||
direnv
|
|
||||||
sops
|
sops
|
||||||
nil
|
nil
|
||||||
nix-index
|
nix-index
|
||||||
|
@ -44,23 +43,5 @@
|
||||||
};
|
};
|
||||||
users.users."0xa".extraGroups = [ "wireshark" ];
|
users.users."0xa".extraGroups = [ "wireshark" ];
|
||||||
|
|
||||||
## direnv
|
programs.direnv.enable = true;
|
||||||
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"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue