cli-docs: add automatic markdown cli docs #1300

Merged
clan-bot merged 2 commits from hsjobeki-main into main 2024-05-07 11:29:19 +00:00
Showing only changes of commit 5a6eeda125 - Show all commits

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 = {