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