feat(inventory/modules): allow inline modules
This commit is contained in:
@@ -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 = ''
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
features = [ "inventory" ]
|
|
||||||
---
|
|
||||||
Description
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
{
|
|
||||||
_class = "clan";
|
|
||||||
perInstance = { };
|
|
||||||
perService = { };
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
let
|
let
|
||||||
inventory = (
|
inventory = (
|
||||||
import ../build-inventory {
|
import ../build-inventory {
|
||||||
|
|
||||||
inherit lib clan-core;
|
inherit lib clan-core;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user