modules: simplify inventoryClass module

This commit is contained in:
Johannes Kirschbauer
2025-10-22 16:29:33 +02:00
parent 5a5633d779
commit 843f55f844
3 changed files with 1 additions and 7 deletions

View File

@@ -0,0 +1,27 @@
{ lib, ... }:
let
inherit (lib) types mkOption;
submodule = m: types.submoduleWith { modules = [ m ]; };
in
{
options = {
directory = mkOption {
type = types.path;
};
distributedServices = mkOption {
type = types.raw;
};
inventory = mkOption {
type = types.raw;
};
machines = mkOption {
type = types.attrsOf (submodule ({
options = {
machineImports = mkOption {
type = types.listOf types.raw;
};
};
}));
};
};
}