init unifyOverlays: to pass channels to overlays

Only to those with three arguments
This commit is contained in:
Pacman99 2021-04-25 16:46:02 -07:00
parent 3986cc441b
commit ceef51425e
2 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,7 @@
pathsToImportedAttrs
concatAttrs
filterPackages;
inherit (lists) pathsIn collectProfiles;
inherit (lists) pathsIn collectProfiles unifyOverlays;
inherit (strings) rgxToString;
inherit modules;
}

View File

@ -16,4 +16,6 @@
fullPath = name: "${toString dir}/${name}";
in
map fullPath (lib.attrNames (lib.safeReadDir dir));
unifyOverlays = channels: map (o: if builtins.isFunction (o null null) then o channels else o);
}