diff --git a/modules/disko/proxmox.nix b/modules/disko/proxmox.nix index 649ec9a..1010d74 100644 --- a/modules/disko/proxmox.nix +++ b/modules/disko/proxmox.nix @@ -10,9 +10,22 @@ type = "gpt"; partitions = { - root = { + swap = { priority = 1; - size = "-8G"; + size = "8G"; + + content = { + type = "swap"; + extraArgs = [ + "-L" + "swap" + ]; + }; + }; + + root = { + priority = 2; + size = "100%"; content = { type = "filesystem"; @@ -24,19 +37,6 @@ ]; }; }; - - swap = { - priority = 2; - size = "100%"; - - content = { - type = "swap"; - extraArgs = [ - "-L" - "swap" - ]; - }; - }; }; }; };