From f7ea0d0c11ed9060413e20c0a4bb4ff30c9ec6d8 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Sun, 23 Feb 2025 14:48:32 +0100 Subject: [PATCH] Added swap file --- machines/laptop.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/machines/laptop.nix b/machines/laptop.nix index b4c81fc..71834fd 100644 --- a/machines/laptop.nix +++ b/machines/laptop.nix @@ -35,7 +35,6 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - swapDevices = [ ]; hardware.cpu.intel.updateMicrocode = true; # Filesystems @@ -52,5 +51,13 @@ "dmask=0077" ]; }; + + # Swapfile + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 16 * 1024; + } + ]; }; }