From acfb512727857d6df6ea54e41558afa9b91f0246 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 20 Nov 2024 23:15:12 +0000 Subject: [PATCH] smolder: add swap --- system/smolder/boot-config.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/smolder/boot-config.nix b/system/smolder/boot-config.nix index 8ce9f5c..39e156c 100644 --- a/system/smolder/boot-config.nix +++ b/system/smolder/boot-config.nix @@ -25,4 +25,14 @@ in kernelPackages = pkgs.linuxPackagesFor kernel; tmp.cleanOnBoot = true; }; + + swapDevices = [ + { + device = "/dev/disk/by-partuuid/bf3edb8a-e33d-46d7-a916-6d9649621745"; + randomEncryption = { + enable = true; + allowDiscards = true; + }; + } + ]; }