forked from c3d2/nix-config
Delete old system profiles
This commit is contained in:
parent
1c60f462a1
commit
cd15352890
|
@ -212,6 +212,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
# Do not break the boot
|
# Do not break the boot
|
||||||
enableEmergencyMode = false;
|
enableEmergencyMode = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user