overlays: make overlay import automatic
Some checks failed
ci/woodpecker/push/check Pipeline failed

Don't rely on nixpkgs' lib to make it easier to just `import` the
directory.
This commit is contained in:
Bruno BELANYI 2023-07-20 21:47:10 +01:00
parent 47533f119e
commit fc6b221ba1

View file

@ -1,3 +1,6 @@
{
# No overlays
}
# Automatically import all overlays in the directory
let
files = builtins.readDir ./.;
overlays = builtins.removeAttrs files [ "default.nix" ];
in
builtins.mapAttrs (name: _: import "${./.}/${name}") overlays