From d77c75a98eb18f9c79d0e31d27973033e4e83d42 Mon Sep 17 00:00:00 2001 From: Emil Karlson Date: Fri, 8 Oct 2021 10:28:54 +0300 Subject: [PATCH] nixos/nix-daemon: Clarify daemonNiceLevel The option doesn not currently do what some people expect, clarify the limitations in documentation. --- nixos/modules/services/misc/nix-daemon.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 1cf892e61c14..d5d2a7d8b878 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -189,7 +189,9 @@ in default = 0; description = '' Nix daemon process priority. This priority propagates to build processes. - 0 is the default Unix process priority, 19 is the lowest. + 0 is the default Unix process priority, 19 is the lowest. Note that nix + bypasses nix-daemon when running as root and this option does not have + any effect in such a case. Please note that if used on a recent Linux kernel with group scheduling, setting the nice level will only have an effect relative to other threads