From 4203164991d0e5b957959b0a3c3149d85f7dcb38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 20 May 2023 19:11:38 +0200 Subject: [PATCH] Ignore if the diff closure command fails --- config/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/default.nix b/config/default.nix index a500984d..32f39064 100644 --- a/config/default.nix +++ b/config/default.nix @@ -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 = {