modules/inventory: distributed services output reduce lexical scope
This commit is contained in:
@@ -231,18 +231,20 @@ in
|
||||
../inventoryClass/default.nix
|
||||
{
|
||||
inherit inventory directory flakeInputs;
|
||||
exportsModule = config.exportsModule;
|
||||
}
|
||||
(
|
||||
let
|
||||
clanConfig = config;
|
||||
in
|
||||
{ config, ... }:
|
||||
{
|
||||
staticModules = clan-core.clan.modules;
|
||||
|
||||
distributedServices = clanLib.inventory.mapInstances {
|
||||
inherit (clanConfig) inventory exportsModule;
|
||||
inherit flakeInputs directory;
|
||||
inherit (config)
|
||||
inventory
|
||||
directory
|
||||
flakeInputs
|
||||
exportsModule
|
||||
;
|
||||
clanCoreModules = clan-core.clan.modules;
|
||||
prefix = [ "distributedServices" ];
|
||||
};
|
||||
|
||||
@@ -32,16 +32,19 @@ in
|
||||
flakeInputs = mkOption {
|
||||
type = types.raw;
|
||||
};
|
||||
|
||||
directory = mkOption {
|
||||
type = types.path;
|
||||
exportsModule = mkOption {
|
||||
type = types.raw;
|
||||
};
|
||||
|
||||
distributedServices = mkOption {
|
||||
type = types.raw;
|
||||
};
|
||||
inventory = mkOption {
|
||||
type = types.raw;
|
||||
};
|
||||
directory = mkOption {
|
||||
type = types.path;
|
||||
};
|
||||
machines = mkOption {
|
||||
type = types.attrsOf (submodule ({
|
||||
options = {
|
||||
|
||||
Reference in New Issue
Block a user