From a612fa71947702dcb78e2e3a3878b75175e0e262 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sat, 26 Oct 2024 03:00:59 +0200 Subject: [PATCH] fix(lib/disko/mkSwap): use size argument --- parts/lib/functions.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parts/lib/functions.nix b/parts/lib/functions.nix index 3555c72..75aa683 100644 --- a/parts/lib/functions.nix +++ b/parts/lib/functions.nix @@ -8,7 +8,6 @@ let inherit (lib) mkOption; in { - # Verify the existence of a binary inside of a derivation. # Returns the path to the binary or throws. checkPath = @@ -92,7 +91,7 @@ in }; }; mkSwap = size: { - size = "32G"; + inherit size; content = { type = "swap"; randomEncryption = true;