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