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

Loading…
Cancel
Save