From b64d48ff3b683807055b5ba721e55a6e2ebcafc9 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 25 Mar 2023 20:38:11 -0400 Subject: [PATCH] added swap partition to disko config --- .modules/disko/luks-lvm.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.modules/disko/luks-lvm.nix b/.modules/disko/luks-lvm.nix index 5a755ad..9deffa9 100644 --- a/.modules/disko/luks-lvm.nix +++ b/.modules/disko/luks-lvm.nix @@ -1,6 +1,6 @@ { disks ? [ "/dev/nvme0n1" ], ... }: { disk = { - nvme0n1p1 = { + nvme0n1 = { type = "disk"; device = builtins.elemAt disks 0; content = { @@ -22,6 +22,17 @@ ]; }; } +# { +# name = "swap"; +# type = "partition"; +# start = "101MiB"; +# end = "40960MiB"; +# part-type = "primary"; +# content = { +# type = "swap"; +# randomEncryption = true; +# }; +# } { type = "partition"; name = "luks";