inventory/interface: reduce apply arguments chain by adding it to _module.args

This commit is contained in:
Johannes Kirschbauer
2025-06-25 13:39:41 +02:00
parent ac7c51d2b3
commit 0bb621f0f7
7 changed files with 35 additions and 22 deletions

View File

@@ -7,11 +7,9 @@ in
inherit (import ./build-inventory { inherit lib clanLib; }) buildInventory;
interface = {
imports = [
(import ./build-inventory/interface.nix { inherit clanLib; })
./build-inventory/interface.nix
];
_module.args = {
inherit clanLib;
};
_module.args = { inherit clanLib; };
};
# Returns the list of machine names
# { ... } -> [ string ]