throttle nix daemon on high mem
This commit is contained in:
parent
349f2a3a71
commit
5339721b50
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,13 @@
|
|||
"i686-linux"
|
||||
];
|
||||
|
||||
# Global default (nixosModules/distributed-builds.nix) is MemoryMax=90%,
|
||||
# which isn't tight enough on this machine's 31GiB to avoid OOM.
|
||||
systemd.services.nix-daemon.serviceConfig = {
|
||||
MemoryHigh = "60%";
|
||||
MemoryMax = lib.mkForce "80%";
|
||||
};
|
||||
|
||||
services.xserver.xkb = {
|
||||
# Configure keymap in X11
|
||||
layout = "de";
|
||||
|
|
|
|||
Loading…
Reference in a new issue