From dc75861f58b4d40d6175e1c17e6d95d3c9d35202 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 14 Aug 2024 17:12:48 +0200 Subject: [PATCH] nixos-mods/allCommon: fix configuring nix-daemon scheduling policies --- nix/nixos-modules/allCommon.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nix/nixos-modules/allCommon.nix b/nix/nixos-modules/allCommon.nix index 7bb3f95..b8b3cb8 100644 --- a/nix/nixos-modules/allCommon.nix +++ b/nix/nixos-modules/allCommon.nix @@ -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; };