fix(inventory/interface): use explizit file dependency, until dependency injection works properly

This commit is contained in:
Johannes Kirschbauer
2025-04-02 11:09:09 +02:00
parent 2ab53b05fe
commit 2715c398cc
7 changed files with 15 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
{
lib,
self,
# TODO: Use dependency injection to allow for testing
# inventoryInterface,
...
}:
let
@@ -79,7 +81,7 @@ in
};
inventory = lib.mkOption {
type = types.submodule { imports = [ self.clanLib.inventory.interface ]; };
type = types.submodule { imports = [ ../inventory/build-inventory/interface.nix ]; };
description = ''
The `Inventory` submodule.
@@ -128,6 +130,7 @@ in
visible = false;
# ClanInternals
type = types.submodule {
freeformType = types.attrsOf types.raw;
options = {
# Those options are interfaced by the CLI
# We don't specify the type here, for better performance.