From acaa06d11af076a5c29c3029ab10e1e7b2aadc0b Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 7 Jan 2023 17:42:46 +0100 Subject: [PATCH] Add swapfile to Thor --- thor/hardware-configuration.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thor/hardware-configuration.nix b/thor/hardware-configuration.nix index 6a198be..df7ede4 100644 --- a/thor/hardware-configuration.nix +++ b/thor/hardware-configuration.nix @@ -53,7 +53,9 @@ ]; }; - swapDevices = - [{ device = "/dev/disk/by-uuid/dee188e4-4ff8-417c-9419-b7f00ecb9989"; }]; + swapDevices = [ + { device = "/dev/disk/by-uuid/dee188e4-4ff8-417c-9419-b7f00ecb9989"; } + { device = "/swapfile"; size = 1024 * 32; } + ]; }