Extend build-clan interface

This commit is contained in:
Johannes Kirschbauer
2024-06-21 22:46:12 +02:00
committed by hsjobeki
parent e44b07df66
commit c89080deb4
7 changed files with 257 additions and 164 deletions

View File

@@ -16,5 +16,6 @@
./zerotier
# Inventory
./inventory/interface.nix
./meta/interface.nix
];
}

View File

@@ -30,6 +30,7 @@ let
in
{
# clan.inventory.${moduleName}.${instanceName} = { ... }
# TODO: resolve clash with clan.services.waypipe
options.clan.services = lib.mkOption {
type = lib.types.attrsOf (lib.types.attrsOf instanceOptions);
};

View File

@@ -0,0 +1,10 @@
{ lib, ... }:
let
optStr = lib.types.nullOr lib.types.str;
in
{
options.clan.meta.name = lib.mkOption { type = lib.types.str; };
options.clan.meta.description = lib.mkOption { type = optStr; };
options.clan.meta.icon = lib.mkOption { type = optStr; };
options.clan.tags = lib.mkOption { type = lib.types.listOf lib.types.str; };
}