From 99ea57a669652ce9311632c91f7ebadb2c965543 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 14 Jan 2024 19:28:57 -0500 Subject: [PATCH] feat(oksys): add 16GB swapfile --- devices/oksys/hardware-configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devices/oksys/hardware-configuration.nix b/devices/oksys/hardware-configuration.nix index edd4e88..92d4568 100644 --- a/devices/oksys/hardware-configuration.nix +++ b/devices/oksys/hardware-configuration.nix @@ -42,6 +42,13 @@ }; }; + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 16 * 1024; + } + ]; + zramSwap.enable = true; hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;