From 8fa11b85fdc100e7a9217bfdd25ca4912c255fcc Mon Sep 17 00:00:00 2001 From: alexion Date: Wed, 30 Sep 2026 09:51:28 -0400 Subject: [PATCH] refactor(dotfiles): inline registry join --- src/dotfiles/registry/collection.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/dotfiles/registry/collection.nix b/src/dotfiles/registry/collection.nix index 83d08b7..14d6a67 100644 --- a/src/dotfiles/registry/collection.nix +++ b/src/dotfiles/registry/collection.nix @@ -59,16 +59,14 @@ let rawDeclarations = registryName: lib.mapAttrs (_hostName: host: host.config.registry.${registryName} or { }) hosts; - - join = - registry: host: entry: - lib.filterAttrs (_name: value: value != null) ( - lib.mapAttrs ( - registryName: _registry: (registry.${registryName}.${host} or { }).${entry} or null - ) definitions - ); in collectData // { - join = host: entry: join collectData host entry; + join = + host: entry: + lib.filterAttrs (_name: value: value != null) ( + lib.mapAttrs ( + registryName: _registry: (collectData.${registryName}.${host} or { }).${entry} or null + ) definitions + ); }