mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
4 lines
272 B
Nix
4 lines
272 B
Nix
{ lib }: pathsA: pathsB: with lib; let
|
|
pathIntersection = intersectLists (attrNames pathsA) (attrNames pathsB);
|
|
pathMerger = pathA: pathB: { imports = [ pathA pathB ]; };
|
|
in pathsA // pathsB // genAttrs pathIntersection (key: (pathMerger pathsA.${key} pathsB.${key}))
|