mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
update nixos example for 22.11
This commit is contained in:
parent
6b035d2773
commit
171b729d28
1 changed files with 4 additions and 4 deletions
|
|
@ -107,10 +107,10 @@ In `/etc/nixos/configuration.nix`:
|
|||
{ pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [ direnv nix-direnv ];
|
||||
# nix options for derivations to persist garbage collection
|
||||
nix.extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
nix.settings = {
|
||||
keep-outputs = true;
|
||||
keep-derivations = true;
|
||||
}
|
||||
environment.pathsToLink = [
|
||||
"/share/nix-direnv"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue