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} = { ... }";
|
||||
};
|
||||
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 = { };
|
||||
description = ''
|
||||
An abstract service layer for consistently configuring distributed services across machine boundaries.
|
||||
@@ -117,10 +118,10 @@ in
|
||||
directory
|
||||
specialArgs
|
||||
machines
|
||||
inventory
|
||||
pkgsForSystem
|
||||
meta
|
||||
;
|
||||
inventory = (lib.traceValSeq cfg.inventory);
|
||||
};
|
||||
};
|
||||
_file = __curPos.file;
|
||||
|
||||
@@ -17,7 +17,7 @@ let
|
||||
availableTags = lib.foldlAttrs (
|
||||
acc: _: v:
|
||||
v.tags or [ ] ++ acc
|
||||
) [ ] inventory.machines;
|
||||
) [ ] (lib.traceValSeq inventory.machines);
|
||||
|
||||
tagMembers = builtins.attrNames (
|
||||
lib.filterAttrs (_n: v: builtins.elem tag v.tags or [ ]) inventory.machines
|
||||
|
||||
Reference in New Issue
Block a user