inventory: unify modules
This commit is contained in:
@@ -231,11 +231,7 @@ in
|
|||||||
inventory = lib.mkOption {
|
inventory = lib.mkOption {
|
||||||
type = types.submoduleWith {
|
type = types.submoduleWith {
|
||||||
modules = [
|
modules = [
|
||||||
{
|
clanLib.inventory.inventoryModule
|
||||||
_module.args = { inherit clanLib; };
|
|
||||||
_file = "clan interface";
|
|
||||||
}
|
|
||||||
../inventoryClass/interface.nix
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
description = ''
|
description = ''
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit (services) mapInstances;
|
inherit (services) mapInstances;
|
||||||
interface = {
|
inventoryModule = {
|
||||||
_file = "clanLib.inventory.interface";
|
_file = "clanLib.inventory.module";
|
||||||
imports = [
|
imports = [
|
||||||
../inventoryClass/interface.nix
|
../inventoryClass/inventory.nix
|
||||||
];
|
];
|
||||||
_module.args = { inherit clanLib; };
|
_module.args = { inherit clanLib; };
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ let
|
|||||||
(evalModules {
|
(evalModules {
|
||||||
# Static modules
|
# Static modules
|
||||||
modules = [
|
modules = [
|
||||||
clanLib.inventory.interface
|
clanLib.inventory.inventoryModule
|
||||||
{
|
{
|
||||||
_file = "test file";
|
_file = "test file";
|
||||||
tags.all = [ ];
|
tags.all = [ ];
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# This module describes
|
||||||
|
# - clanInternals.inventoryClass.inventory
|
||||||
|
# - clan.inventory
|
||||||
|
# Which is the public interface for the inventory system
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
clanLib,
|
clanLib,
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# This file is imported into:
|
||||||
|
# - clan.meta
|
||||||
|
# - clan.inventory.meta
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
types = lib.types;
|
types = lib.types;
|
||||||
|
|||||||
Reference in New Issue
Block a user