Use __functor to simplify combinators

By using `__functor` combinators can call each other directly by using
`rec` rather than needing to mapAttrs over all of the combinators to
inject them into each one.
This commit is contained in:
Alex David 2025-06-13 22:14:13 -07:00
commit fce1224bdd
3 changed files with 42 additions and 44 deletions

View file

@ -6,9 +6,7 @@
dataDirSubPath = subPath: "${dataDir}/${combinators.escape subPath}";
};
combinators = lib.mapAttrs
(_: v: v.impl combinators)
(import ./combinators.nix { inherit pkgs lib helpers; });
combinators = import ./combinators.nix { inherit pkgs lib helpers; };
initial-state = {
name = name;