nixos-mods/allCommon: fix configuring nix-daemon scheduling policies

secrix-issue25
Felix Stupp 3 months ago
parent 2a4862c75d
commit dc75861f58
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -55,8 +55,13 @@ in
nix = { nix = {
channel.enable = false; channel.enable = false;
daemonCPUSchedPolicy = "batch";
daemonIOSchedClass = "best-effort";
daemonIOSchedPriority = 7;
settings = { settings = {
allowed-users = [ allowed-users = [
"root" "root"
@ -74,11 +79,9 @@ in
"root" "root"
]; ];
}; };
}; };
systemd.services.nix-daemon.serviceConfig = { systemd.services.nix-daemon.serviceConfig = {
CPUSchedulingPolicy = "batch";
IOSchedulingClass = "best-effort";
IOSchedulingPriority = 7;
OOMScoreAdjust = lib.mkDefault 250; OOMScoreAdjust = lib.mkDefault 250;
}; };

Loading…
Cancel
Save