fix(lib/disko/mkSwap): use size argument

This commit is contained in:
Nydragon 2024-10-26 03:00:59 +02:00
parent a1622edd61
commit a612fa7194
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE

View file

@ -8,7 +8,6 @@ let
inherit (lib) mkOption; inherit (lib) mkOption;
in in
{ {
# Verify the existence of a binary inside of a derivation. # Verify the existence of a binary inside of a derivation.
# Returns the path to the binary or throws. # Returns the path to the binary or throws.
checkPath = checkPath =
@ -92,7 +91,7 @@ in
}; };
}; };
mkSwap = size: { mkSwap = size: {
size = "32G"; inherit size;
content = { content = {
type = "swap"; type = "swap";
randomEncryption = true; randomEncryption = true;