disko module: add default for singleDiskExt4

This commit is contained in:
Johannes Kirschbauer 2024-04-30 20:05:05 +02:00
parent f8e08a610e
commit 5a6eeda125
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU

View File

@ -2,8 +2,9 @@
{
options.clan.disk-layouts.singleDiskExt4 = {
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";
default = null;
};
};
config = {
@ -15,6 +16,7 @@
type = "disk";
device = config.clan.disk-layouts.singleDiskExt4.device;
content = {
device = lib.mkDefault config.clan.diskLayouts.singleDiskExt4.device;
type = "gpt";
partitions = {
boot = {