Ignore if the diff closure command fails
This commit is contained in:
parent
5aeaaf338c
commit
4203164991
|
@ -210,9 +210,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# does not suceed on installation which is okay
|
||||||
system.activationScripts.deleteOldSystemProfiles = lib.mkIf config.nix.gc.automatic ''
|
system.activationScripts.deleteOldSystemProfiles = lib.mkIf config.nix.gc.automatic ''
|
||||||
echo "Deleting old system profiles..."
|
echo "Deleting old system profiles..."
|
||||||
/run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --delete-generations +10
|
/run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --delete-generations +10 || true
|
||||||
'';
|
'';
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
|
|
Loading…
Reference in New Issue