From 7d14f4a8df1964bddaa70cea65506828ad721a48 Mon Sep 17 00:00:00 2001 From: fruchti Date: Sat, 2 Dec 2023 20:34:17 +0100 Subject: [PATCH] Disco: Add swap file, earlyoom --- hosts/Disco.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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