From 5689f305d9b4eddc39ce8d590c4426622e26bc7d Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Sat, 29 Mar 2025 17:48:42 +0100 Subject: [PATCH] feat(inventory/instances): improve error location --- lib/distributed-service/service-module.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/distributed-service/service-module.nix b/lib/distributed-service/service-module.nix index 6b463dd8c..046b3dddd 100644 --- a/lib/distributed-service/service-module.nix +++ b/lib/distributed-service/service-module.nix @@ -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; }; }