Skyler Grey | 94c1a78 | 2022-10-31 00:30:26 +0000 | [diff] [blame] | 1 | lib: specialArgs: |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 2 | let |
Skyler Grey | ee0c095 | 2022-09-01 23:33:36 +0100 | [diff] [blame] | 3 | utils = import ../utils lib; |
| 4 | in |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 5 | lib.pipe ./. [ |
| 6 | utils.nixFilesInWithName |
| 7 | (builtins.filter ({ name, ... }: name != "default.nix")) |
Skyler Grey | 9815acf | 2023-02-26 12:41:16 +0000 | [diff] [blame] | 8 | # (lib.traceValFn (overlays: "Applying overlays ${builtins.toJSON (map (overlay: overlay.name) overlays)}")) |
| 9 | (builtins.map ({ path, ... }: /* lib.traceVal */ path)) |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 10 | (map (path: import path)) |
Skyler Grey | 94c1a78 | 2022-10-31 00:30:26 +0000 | [diff] [blame] | 11 | (map (overlay: |
| 12 | if (builtins.functionArgs overlay) != { } |
| 13 | then overlay (builtins.intersectAttrs (builtins.functionArgs overlay) specialArgs) |
| 14 | else overlay)) |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 15 | ] |