feat(inventory/instances): improve error location

This commit is contained in:
Johannes Kirschbauer
2025-03-29 17:48:42 +01:00
parent 0fb1b5c5ce
commit 86d0c95da7

View File

@@ -503,7 +503,8 @@ in
nixosModule = {
imports = [
# 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;
};
}