inventory/interface: reduce apply arguments chain by adding it to _module.args
This commit is contained in:
@@ -122,8 +122,8 @@
|
||||
mkOption {
|
||||
type = types.submodule {
|
||||
imports = [
|
||||
{ _module.args = { inherit clanLib; }; }
|
||||
(import ../../../lib/inventory/build-inventory/roles-interface.nix {
|
||||
inherit clanLib;
|
||||
nestedSettingsOption = mkOption {
|
||||
type = types.raw;
|
||||
description = ''
|
||||
@@ -148,10 +148,9 @@
|
||||
mkScope = name: modules: {
|
||||
inherit name;
|
||||
modules = [
|
||||
(import ../../../lib/inventory/build-inventory/interface.nix {
|
||||
inherit clanLib;
|
||||
noInstanceOptions = true;
|
||||
})
|
||||
{ _module.args = { inherit clanLib; }; }
|
||||
{ noInstanceOptions = true; }
|
||||
../../../lib/inventory/build-inventory/interface.nix
|
||||
] ++ mapAttrsToList fakeInstanceOptions modules;
|
||||
urlPrefix = "https://github.com/nix-community/dream2nix/blob/main/";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user