From 6c730360a05805161812d3590294c84c935f2844 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 5 Jan 2023 16:42:20 +0100 Subject: [PATCH] Add swapfile to config --- odin/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/odin/hardware-configuration.nix b/odin/hardware-configuration.nix index 3fa98cb..6db6dc5 100644 --- a/odin/hardware-configuration.nix +++ b/odin/hardware-configuration.nix @@ -105,7 +105,10 @@ }; swapDevices = - [{ device = "/dev/disk/by-uuid/5f3cf424-2bd8-4352-a778-1bb067cb5700"; }]; + [ + { device = "/dev/disk/by-uuid/5f3cf424-2bd8-4352-a778-1bb067cb5700"; } + { device = "/swapfile"; size = 1024 * 32; } + ]; # 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