commit 7a1f6ff8ac8a34e43e34475a5d3915ea67c312aa
parent 59f1fafaddbeb2bdfeb282635b212353ea399338
Author: MTRNord <mtrnord1@gmail.com>
Date: Fri, 25 Aug 2023 14:46:47 +0200
Add swapfile
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nixos/worker-1/hardware-configuration.nix b/nixos/worker-1/hardware-configuration.nix
@@ -59,7 +59,10 @@
fsType = "vfat";
};
- swapDevices = [ ];
+ swapDevices = [{
+ device = "/var/lib/swapfile";
+ size = 32 * 1024;
+ }];
# 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