mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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.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 = {
|
||||||
|
|
Loading…
Reference in a new issue