Ignore if the diff closure command fails

This commit is contained in:
Sandro - 2023-05-20 19:11:38 +02:00
parent 5aeaaf338c
commit 4203164991
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 2 additions and 1 deletions

View File

@ -210,9 +210,10 @@
};
};
# does not suceed on installation which is okay
system.activationScripts.deleteOldSystemProfiles = lib.mkIf config.nix.gc.automatic ''
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 = {