mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
enable earlyoom
This commit is contained in:
parent
40ed243c6b
commit
76cae5849e
1 changed files with 3 additions and 0 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue