mirror of
https://github.com/nix-community/srvos.git
synced 2024-08-17 01:40:26 +03:00
Merge pull request #315 from nix-community/nix-daemon
nix-daemon: set oomscoreadjust
This commit is contained in:
commit
cdc612b37a
@ -22,6 +22,11 @@
|
||||
nix.daemonIOSchedClass = lib.mkDefault "idle";
|
||||
nix.daemonIOSchedPriority = lib.mkDefault 7;
|
||||
|
||||
# Make builds to be more likely killed than important services.
|
||||
# 100 is the default for user slices and 500 is systemd-coredumpd@
|
||||
# We rather want a build to be killed than our precious user sessions as builds can be easily restarted.
|
||||
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = lib.mkDefault 250;
|
||||
|
||||
# Avoid copying unnecessary stuff over SSH
|
||||
nix.settings.builders-use-substitutes = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user