From 00bdafa17c3dfa9e144fa2d9133c000e17e0bdde Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Tue, 27 Sep 2022 09:08:24 -0400 Subject: [PATCH] Enable swap file at /var/swap on buck --- machines/buck/hardware-configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/machines/buck/hardware-configuration.nix b/machines/buck/hardware-configuration.nix index fcb8ddb..1899fe0 100644 --- a/machines/buck/hardware-configuration.nix +++ b/machines/buck/hardware-configuration.nix @@ -27,7 +27,12 @@ fsType = "vfat"; }; - swapDevices = []; + swapDevices = [ + { + device = "/var/swap"; + size = 1024 * 8 * 2; + } + ]; # 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