Disco: Add swap file, earlyoom

This commit is contained in:
fruchti 2023-12-02 20:34:17 +01:00
parent 2494def822
commit 7d14f4a8df

View file

@ -172,6 +172,16 @@
LidSwitchIgnoreInhibited = no LidSwitchIgnoreInhibited = no
''; '';
services.earlyoom = {
enable = true;
enableNotifications = true;
};
swapDevices = [{
device = "/swapfile";
size = 16 * 1024;
}];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave