summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
authorJakub Stachurski <j.stachurski@student.utwente.nl>2025-11-08 19:21:05 +0100
committerJakub Stachurski <j.stachurski@student.utwente.nl>2025-11-08 19:29:27 +0100
commit0c9b217d36da3e29f23ece44b034fa98322daf28 (patch)
tree0ffeef2c9bb55439cba436bd08e1dfa620bd9c97 /common.nix
parent72a532244594a370f597babf700fb013123d8c17 (diff)
Remote build support fully modularized
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index 2ffe4d9..0bafc47 100644
--- a/common.nix
+++ b/common.nix
@@ -34,6 +34,11 @@
dates = "weekly";
options = "--delete-older-than 30d";
};
+ systemd.services.nix-daemon.serviceConfig = {
+ MemoryAccounting = true;
+ MemoryMax = "90%";
+ OOMScoreAdjust = 500;
+ };
environment.systemPackages = with pkgs; [
htop