From cd40bd61781bd69beba59f51f33d8f1760f5e3c4 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sat, 29 Mar 2025 19:34:42 +0100 Subject: [PATCH] Wenche: add swapfile --- hosts/wenche/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/wenche/hardware-configuration.nix b/hosts/wenche/hardware-configuration.nix index 4c6a6e2..51d8a1b 100644 --- a/hosts/wenche/hardware-configuration.nix +++ b/hosts/wenche/hardware-configuration.nix @@ -15,7 +15,10 @@ fsType = "ext4"; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 16*1024; + } ]; networking.useDHCP = lib.mkDefault false; # networking.interfaces.ens18.useDHCP = lib.mkDefault true;