Set system resource quotas for nixos-upgrade
This commit is contained in:
parent
d23cb68a74
commit
057281fee5
|
@ -64,6 +64,13 @@
|
|||
"https://nix.xenia.me.uk"
|
||||
];
|
||||
};
|
||||
systemd.services = lib.mkIf config.system.autoUpgrade.enable {
|
||||
nixos-upgrade.serviceConfig = {
|
||||
CPUQuota = "50%";
|
||||
CPUWeight = 20;
|
||||
IOWeight = 20;
|
||||
};
|
||||
};
|
||||
boot.loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
|
|
Loading…
Reference in a new issue