From aa9a0493773258b4aa5d7f8227731e08f51265f5 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Wed, 11 Sep 2024 14:44:25 +0200 Subject: [PATCH] pinwheel: Add `swapfile` --- hosts/pinwheel/hardware-configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/pinwheel/hardware-configuration.nix b/hosts/pinwheel/hardware-configuration.nix index 71c2631..eaf6cc4 100644 --- a/hosts/pinwheel/hardware-configuration.nix +++ b/hosts/pinwheel/hardware-configuration.nix @@ -36,7 +36,12 @@ fsType = "vfat"; }; - swapDevices = [ ]; + swapDevices = [ + { + device = "/swapfile"; + size = 24 * 1024; # 24GB + } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's