feat(inventory/modules): allow inline modules

This commit is contained in:
Johannes Kirschbauer
2025-03-26 17:08:27 +01:00
parent 94781bb358
commit fae8ec318d
4 changed files with 1 additions and 12 deletions

View File

@@ -103,7 +103,7 @@ in
default = options; default = options;
}; };
modules = lib.mkOption { modules = lib.mkOption {
type = types.attrsOf types.path; type = types.attrsOf (types.either types.path types.deferredModule);
default = { }; default = { };
defaultText = "clanModules of clan-core"; defaultText = "clanModules of clan-core";
description = '' description = ''

View File

@@ -1,4 +0,0 @@
---
features = [ "inventory" ]
---
Description

View File

@@ -1,6 +0,0 @@
{ ... }:
{
_class = "clan";
perInstance = { };
perService = { };
}

View File

@@ -2,7 +2,6 @@
let let
inventory = ( inventory = (
import ../build-inventory { import ../build-inventory {
inherit lib clan-core; inherit lib clan-core;
} }
); );