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, ... }: { { pkgs, ... }: {
environment.systemPackages = with pkgs; [ direnv nix-direnv ]; environment.systemPackages = with pkgs; [ direnv nix-direnv ];
# nix options for derivations to persist garbage collection # nix options for derivations to persist garbage collection
nix.extraOptions = '' nix.settings = {
keep-outputs = true keep-outputs = true;
keep-derivations = true keep-derivations = true;
''; }
environment.pathsToLink = [ environment.pathsToLink = [
"/share/nix-direnv" "/share/nix-direnv"
]; ];