From e7b106a6422bdbf5874b2faea1caa1ad56a80301 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 16 Jan 2018 16:16:09 +0100 Subject: Memory limit on nix-daemon --- hel.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hel.nix b/hel.nix index f524dd44..e919426f 100644 --- a/hel.nix +++ b/hel.nix @@ -561,5 +561,11 @@ fileSystems = [ "/" ]; interval = "weekly"; }; + + systemd.services."nix-daemon".serviceConfig = { + MemoryAccounting = true; + MemoryHigh = "75%"; + MemoryMax = "80%"; + }; } -- cgit v1.2.3