Chore: add _file for internals error tracing
This commit is contained in:
@@ -121,6 +121,7 @@
|
|||||||
roleName: roleSettingsModule:
|
roleName: roleSettingsModule:
|
||||||
mkOption {
|
mkOption {
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
|
_file = "docs flake-module";
|
||||||
imports = [
|
imports = [
|
||||||
{ _module.args = { inherit clanLib; }; }
|
{ _module.args = { inherit clanLib; }; }
|
||||||
(import ../../../lib/inventory/build-inventory/roles-interface.nix {
|
(import ../../../lib/inventory/build-inventory/roles-interface.nix {
|
||||||
@@ -148,7 +149,10 @@
|
|||||||
mkScope = name: modules: {
|
mkScope = name: modules: {
|
||||||
inherit name;
|
inherit name;
|
||||||
modules = [
|
modules = [
|
||||||
{ _module.args = { inherit clanLib; }; }
|
{
|
||||||
|
_module.args = { inherit clanLib; };
|
||||||
|
_file = "docs mkScope";
|
||||||
|
}
|
||||||
{ noInstanceOptions = true; }
|
{ noInstanceOptions = true; }
|
||||||
../../../lib/inventory/build-inventory/interface.nix
|
../../../lib/inventory/build-inventory/interface.nix
|
||||||
] ++ mapAttrsToList fakeInstanceOptions modules;
|
] ++ mapAttrsToList fakeInstanceOptions modules;
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ in
|
|||||||
getRoleFile = role: builtins.seq role inventory.modules.${serviceName} + "/roles/${role}.nix";
|
getRoleFile = role: builtins.seq role inventory.modules.${serviceName} + "/roles/${role}.nix";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
_file = "inventory/builder.nix";
|
||||||
_module.args = {
|
_module.args = {
|
||||||
inherit
|
inherit
|
||||||
resolveTags
|
resolveTags
|
||||||
|
|||||||
@@ -421,6 +421,7 @@ in
|
|||||||
types.submodule {
|
types.submodule {
|
||||||
imports = [
|
imports = [
|
||||||
{
|
{
|
||||||
|
_file = "inventory/interface";
|
||||||
_module.args = {
|
_module.args = {
|
||||||
inherit clanLib;
|
inherit clanLib;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ in
|
|||||||
inherit (services) evalClanService mapInstances resolveModule;
|
inherit (services) evalClanService mapInstances resolveModule;
|
||||||
inherit (import ./build-inventory { inherit lib clanLib; }) buildInventory;
|
inherit (import ./build-inventory { inherit lib clanLib; }) buildInventory;
|
||||||
interface = {
|
interface = {
|
||||||
|
_file = "inventory/default.nix";
|
||||||
imports = [
|
imports = [
|
||||||
./build-inventory/interface.nix
|
./build-inventory/interface.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -15,9 +15,7 @@ let
|
|||||||
modules = [
|
modules = [
|
||||||
clanLib.inventory.interface
|
clanLib.inventory.interface
|
||||||
{
|
{
|
||||||
_module.args = {
|
_file = "test file";
|
||||||
inherit clanLib;
|
|
||||||
};
|
|
||||||
tags.all = [ ];
|
tags.all = [ ];
|
||||||
tags.nixos = [ ];
|
tags.nixos = [ ];
|
||||||
tags.darwin = [ ];
|
tags.darwin = [ ];
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ let
|
|||||||
{
|
{
|
||||||
constraints.imports = [
|
constraints.imports = [
|
||||||
(lib.modules.importApply ../constraints {
|
(lib.modules.importApply ../constraints {
|
||||||
|
resolvedRoles = { };
|
||||||
moduleName = "{moduleName}";
|
moduleName = "{moduleName}";
|
||||||
|
instanceName = "{instanceName}";
|
||||||
allRoles = [ "{roleName}" ];
|
allRoles = [ "{roleName}" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -100,7 +100,10 @@ in
|
|||||||
inventory = lib.mkOption {
|
inventory = lib.mkOption {
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
imports = [
|
imports = [
|
||||||
{ _module.args = { inherit clanLib; }; }
|
{
|
||||||
|
_module.args = { inherit clanLib; };
|
||||||
|
_file = "clan interface";
|
||||||
|
}
|
||||||
../../inventory/build-inventory/interface.nix
|
../../inventory/build-inventory/interface.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user