disk.foo = {
type = "disk";
content = {
type = "gpt";
partitions.bar = {
type = "filesystem";
format = "ext4";
# ...
};
};
zpool.baz = {
type = "zpool";
# ...
};type = "btrfs"; insteadtype refers to actual types. in the nixos module system. and since btrfs, unlike all other available filesystems¹, has additional config options (subvolumes) that can't be specified in the mount options, it needs to be its own typetype = "filesystem"; format = "btrfs"; too, you just don't get to use subvolumes and have swapfiles if you do (at least not declaratively)
@star@amazonawaws.comdisko.memSize, the builder VM will panic, because that value is 1024 (MiB) by default, and opening(/creating?) a luks partition uses at least that much by design.mountOptions = [ "mode = 755" ];, the builder VM will hang. no idea why.