nix: Reduce priority of daemon

restic-rest-server
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
1 changed files with 4 additions and 0 deletions

View File

@ -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)