Set system resource quotas for nixos-upgrade

This commit is contained in:
Evie Litherland-Smith 2025-02-26 06:20:19 +00:00
parent d23cb68a74
commit 057281fee5

View file

@ -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;