refactor(dotfiles): inline registry operations #115

Closed
alexion wants to merge 3 commits from refs/pull/115/head into main
pull from: refs/pull/115/head
Showing only changes of commit 8fa11b85fd - Show all commits
+7 -9
View File
@@ -59,16 +59,14 @@ let
rawDeclarations = rawDeclarations =
registryName: lib.mapAttrs (_hostName: host: host.config.registry.${registryName} or { }) hosts; 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 in
collectData 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
);
} }