Don't rely on nixpkgs' lib to make it easier to just `import` the directory.
This commit is contained in:
parent
47533f119e
commit
fc6b221ba1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue