nix: Reduce priority of daemon

This commit is contained in:
Simon Bruder 2020-12-02 22:18:27 +01:00
parent 5fe03fb923
commit ba3a59d8c0
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -45,7 +45,11 @@
# On-the-fly optimisation of nix store # On-the-fly optimisation of nix store
autoOptimiseStore = true; autoOptimiseStore = true;
# Make nix build in background less noticeable
daemonIONiceLevel = 5; # 0-7
}; };
systemd.services.nix-daemon.serviceConfig.CPUSchedulingPolicy = "batch";
nixpkgs.config = { nixpkgs.config = {
# Explicitly allow unfree packages (rule of thumb: assets ok, code not ok) # Explicitly allow unfree packages (rule of thumb: assets ok, code not ok)