summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
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