Use option to get nix package
This commit is contained in:
parent
3a49a4dd53
commit
f7d1bfe7e9
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue