update nixos example for 22.11

This commit is contained in:
Jörg Thalheim 2022-11-27 15:11:49 +01:00
parent 6b035d2773
commit 171b729d28

View file

@ -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"
];