diff --git a/hosts/Disco.nix b/hosts/Disco.nix index 09c5437..8f28c01 100644 --- a/hosts/Disco.nix +++ b/hosts/Disco.nix @@ -172,6 +172,16 @@ LidSwitchIgnoreInhibited = no ''; + services.earlyoom = { + enable = true; + enableNotifications = true; + }; + + swapDevices = [{ + device = "/swapfile"; + size = 16 * 1024; + }]; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave