diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-01-16 16:16:09 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-01-16 16:16:09 +0100 |
commit | e7b106a6422bdbf5874b2faea1caa1ad56a80301 (patch) | |
tree | 69f6b5c55054e18a709c8e901f4bc66be739e811 | |
parent | b0eb2dcba41dcf8462623c90e70ff9365ae3bc56 (diff) | |
download | nixos-e7b106a6422bdbf5874b2faea1caa1ad56a80301.tar nixos-e7b106a6422bdbf5874b2faea1caa1ad56a80301.tar.gz nixos-e7b106a6422bdbf5874b2faea1caa1ad56a80301.tar.bz2 nixos-e7b106a6422bdbf5874b2faea1caa1ad56a80301.tar.xz nixos-e7b106a6422bdbf5874b2faea1caa1ad56a80301.zip |
Memory limit on nix-daemon
-rw-r--r-- | hel.nix | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -561,5 +561,11 @@ | |||
561 | fileSystems = [ "/" ]; | 561 | fileSystems = [ "/" ]; |
562 | interval = "weekly"; | 562 | interval = "weekly"; |
563 | }; | 563 | }; |
564 | |||
565 | systemd.services."nix-daemon".serviceConfig = { | ||
566 | MemoryAccounting = true; | ||
567 | MemoryHigh = "75%"; | ||
568 | MemoryMax = "80%"; | ||
569 | }; | ||
564 | } | 570 | } |
565 | 571 | ||