diff options
-rw-r--r-- | overlays.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/overlays.nix b/overlays.nix new file mode 100644 index 0000000..c2437e8 --- /dev/null +++ b/overlays.nix @@ -0,0 +1,14 @@ +{ config, ... }: +{ + nixpkgs.overlays = + let + paths = [ + ./overlays + ]; + in with builtins; + concatMap (path: + (map (n: import (path + ("/" + n))) + (filter (n: match ".*\\.nix" n != null || + pathExists (path + ("/" + n + "/default.nix"))) + (attrNames (readDir path))))) paths; +}
\ No newline at end of file |