I keep forgetting `map` and `removeAttrs` are included at the top-level in the prelude.
6 lines
204 B
Nix
6 lines
204 B
Nix
# Automatically import all overlays in the directory
|
|
let
|
|
files = builtins.readDir ./.;
|
|
overlays = removeAttrs files [ "default.nix" ];
|
|
in
|
|
builtins.mapAttrs (name: _: import "${./.}/${name}") overlays
|