disko: document constant

This commit is contained in:
Sandro - 2023-05-19 02:02:40 +02:00
parent 7e3a98d68f
commit 465abc2b03
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ in
let
diskName = if disk.name != "" then "-${disk.name}" else "";
luksName = "crypt-${config.networking.hostName}${diskName}";
rootSize = 200;
rootSize = 200; # size of the zfs partition if inside of lvm
vgName = "lvm-${config.networking.hostName}${diskName}";
zfs = {
size = if (!disk.withCeph) then "100%FREE" else "${toString rootSize}GiB";
@ -81,7 +81,7 @@ in
};
zfsName = "${config.networking.hostName}${diskName}";
in
({
{
disk.${disk.device} = {
inherit (disk) device;
type = "disk";
@ -203,7 +203,7 @@ in
};
};
};
}))
})
cfg.disks));
# we use our own hardware-configuration.nix
enableConfig = false;