From f7d1bfe7e9c8533e80c7aecd6ca8267c1e94303d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 20 May 2023 22:11:42 +0200 Subject: [PATCH] Use option to get nix package --- config/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/default.nix b/config/default.nix index 32f39064..5b7e68c3 100644 --- a/config/default.nix +++ b/config/default.nix @@ -213,7 +213,7 @@ # 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 || true + ${config.nix.package}/bin/nix-env --profile /nix/var/nix/profiles/system --delete-generations +10 || true ''; systemd = {