enable earlyoom

This commit is contained in:
Sean Buckley 2024-03-14 12:56:36 -04:00
parent 40ed243c6b
commit 76cae5849e

View file

@ -29,6 +29,8 @@
systemd.tmpfiles.rules = [ "e /nix/var/log - - - 30d" ];
systemd.oomd.enable = false; # using earlyoom
zramSwap.enable = lib.mkDefault true;
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
@ -43,6 +45,7 @@
};
services = {
earlyoom.enable = true;
logind.lidSwitch = "ignore";
openssh.enable = true;
xserver = {