wip: debug
This commit is contained in:
committed by
Johannes Kirschbauer
parent
ef4ef00d0f
commit
d9932b3b81
@@ -60,7 +60,8 @@ in
|
|||||||
description = "Allows to include machine-specific modules i.e. machines.\${name} = { ... }";
|
description = "Allows to include machine-specific modules i.e. machines.\${name} = { ... }";
|
||||||
};
|
};
|
||||||
inventory = mkOption {
|
inventory = mkOption {
|
||||||
type = types.submodule { imports = [ ../lib/inventory/build-inventory/interface.nix ]; };
|
#type = types.submodule { imports = [ ../lib/inventory/build-inventory/interface.nix ]; };
|
||||||
|
type = types.attrsOf types.raw;
|
||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
An abstract service layer for consistently configuring distributed services across machine boundaries.
|
An abstract service layer for consistently configuring distributed services across machine boundaries.
|
||||||
@@ -117,10 +118,10 @@ in
|
|||||||
directory
|
directory
|
||||||
specialArgs
|
specialArgs
|
||||||
machines
|
machines
|
||||||
inventory
|
|
||||||
pkgsForSystem
|
pkgsForSystem
|
||||||
meta
|
meta
|
||||||
;
|
;
|
||||||
|
inventory = (lib.traceValSeq cfg.inventory);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
_file = __curPos.file;
|
_file = __curPos.file;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ let
|
|||||||
availableTags = lib.foldlAttrs (
|
availableTags = lib.foldlAttrs (
|
||||||
acc: _: v:
|
acc: _: v:
|
||||||
v.tags or [ ] ++ acc
|
v.tags or [ ] ++ acc
|
||||||
) [ ] inventory.machines;
|
) [ ] (lib.traceValSeq inventory.machines);
|
||||||
|
|
||||||
tagMembers = builtins.attrNames (
|
tagMembers = builtins.attrNames (
|
||||||
lib.filterAttrs (_n: v: builtins.elem tag v.tags or [ ]) inventory.machines
|
lib.filterAttrs (_n: v: builtins.elem tag v.tags or [ ]) inventory.machines
|
||||||
|
|||||||
Reference in New Issue
Block a user