Update nixos/common/nix.nix

Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
This commit is contained in:
Jörg Thalheim 2023-12-06 21:48:12 +01:00 committed by GitHub
parent 5bb2b3153c
commit 43ee0a6414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,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.OOMScoreAdjust = lib.mkDefault 250;
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = lib.mkDefault 250;
# Avoid copying unnecessary stuff over SSH
nix.settings.builders-use-substitutes = true;