Use option to get nix package

This commit is contained in:
Sandro - 2023-05-20 22:11:42 +02:00
parent 3a49a4dd53
commit f7d1bfe7e9
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {