feat(inventory/instances): improve error location

This commit is contained in:
Johannes Kirschbauer
2025-03-29 17:48:42 +01:00
parent b85705ff63
commit 5689f305d9

View File

@@ -503,7 +503,8 @@ in
nixosModule = { nixosModule = {
imports = [ imports = [
# For error backtracing. This module was produced by the 'perMachine' function # For error backtracing. This module was produced by the 'perMachine' function
(lib.setDefaultModuleLocation "via perMachine" machineResult.nixosModule) # TODO: check if we need this or if it leads to better errors if we pass the underlying module locations
(lib.setDefaultModuleLocation "clan.service: ${config.manifest.name} - via perMachine" machineResult.nixosModule)
] ++ instanceResults; ] ++ instanceResults;
}; };
} }