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

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
1 changed files with 6 additions and 3 deletions

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