From ba3a59d8c0031843f863a9a3eb8228867c5e6ec7 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 2 Dec 2020 22:18:27 +0100 Subject: [PATCH] nix: Reduce priority of daemon --- modules/base.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/base.nix b/modules/base.nix index 9834f8f..e9334f5 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -45,7 +45,11 @@ # On-the-fly optimisation of nix store autoOptimiseStore = true; + + # Make nix build in background less noticeable + daemonIONiceLevel = 5; # 0-7 }; + systemd.services.nix-daemon.serviceConfig.CPUSchedulingPolicy = "batch"; nixpkgs.config = { # Explicitly allow unfree packages (rule of thumb: assets ok, code not ok)