From 5601423ed563812352eea6b97cbc7c0f4bd8e989 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 3 Jun 2025 17:38:02 +0200 Subject: [PATCH] chore(inventory/instances): add forward all role attributes to the service --- lib/inventory/distributed-service/inventory-adapter.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/inventory/distributed-service/inventory-adapter.nix b/lib/inventory/distributed-service/inventory-adapter.nix index e3a90d440..1aa157b6a 100644 --- a/lib/inventory/distributed-service/inventory-adapter.nix +++ b/lib/inventory/distributed-service/inventory-adapter.nix @@ -114,7 +114,9 @@ in }; in # instances..roles. = - { + # Remove "tags", they are resolved into "machines" + (removeAttrs role [ "tags" ]) + // { machines = lib.genAttrs resolvedMachines.machines ( machineName: let @@ -136,10 +138,6 @@ in }; } ); - # Maps to settings for the role. - # In other words this sets the following path of a clan.service module: - # instances..roles..settings - settings = role.settings; } ) instance.roles; in