disko module: add default for singleDiskExt4

This commit is contained in:
Johannes Kirschbauer
2024-04-30 20:05:05 +02:00
parent 83c6f3a15d
commit 7c1852507e

View File

@@ -2,8 +2,9 @@
{ {
options.clan.disk-layouts.singleDiskExt4 = { options.clan.disk-layouts.singleDiskExt4 = {
device = lib.mkOption { device = lib.mkOption {
type = lib.types.str; type = lib.types.nullOr lib.types.str;
example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345"; example = "/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAGB12345";
default = null;
}; };
}; };
config = { config = {
@@ -15,6 +16,7 @@
type = "disk"; type = "disk";
device = config.clan.disk-layouts.singleDiskExt4.device; device = config.clan.disk-layouts.singleDiskExt4.device;
content = { content = {
device = lib.mkDefault config.clan.diskLayouts.singleDiskExt4.device;
type = "gpt"; type = "gpt";
partitions = { partitions = {
boot = { boot = {