clanServices: remove unneeded self reference in lib
This commit is contained in:
@@ -12,11 +12,10 @@
|
||||
{
|
||||
lib,
|
||||
clanLib,
|
||||
clan-core,
|
||||
...
|
||||
}:
|
||||
let
|
||||
resolveModule = import ./resolveModule.nix { inherit lib clan-core; };
|
||||
resolveModule = import ./resolveModule.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
mapInstances =
|
||||
@@ -26,6 +25,7 @@ in
|
||||
# The clan inventory
|
||||
inventory,
|
||||
localModuleSet,
|
||||
clanCoreModules,
|
||||
prefix ? [ ],
|
||||
}:
|
||||
let
|
||||
@@ -38,7 +38,7 @@ in
|
||||
resolvedModule = resolveModule {
|
||||
moduleSpec = instance.module;
|
||||
inherit localModuleSet;
|
||||
inherit flakeInputs;
|
||||
inherit flakeInputs clanCoreModules;
|
||||
};
|
||||
|
||||
# Every instance includes machines via roles
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
{ lib, clan-core }:
|
||||
{ lib }:
|
||||
{
|
||||
moduleSpec,
|
||||
flakeInputs,
|
||||
localModuleSet,
|
||||
clanCoreModules,
|
||||
}:
|
||||
let
|
||||
inputName = if moduleSpec.input == null then "<clan>" else moduleSpec.input;
|
||||
@@ -29,7 +30,7 @@ let
|
||||
let
|
||||
input =
|
||||
if moduleSpec.input == null then
|
||||
clan-core
|
||||
{ clan.modules = clanCoreModules; }
|
||||
else if moduleSpec.input == "self" then
|
||||
{ clan.modules = localModuleSet; }
|
||||
else
|
||||
|
||||
@@ -45,6 +45,7 @@ let
|
||||
inventory = evalInventory inventoryModule;
|
||||
in
|
||||
clanLib.inventory.mapInstances {
|
||||
clanCoreModules = { };
|
||||
flakeInputs = flakeInputsFixture;
|
||||
inherit inventory;
|
||||
localModuleSet = inventory.modules;
|
||||
|
||||
Reference in New Issue
Block a user