summaryrefslogtreecommitdiff
path: root/lib/overlays.nix
blob: add8fc4f1905000cce5035058cbe365603a1ae88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
{ self }:
let
  path = "${self}/overlays";
in
with builtins;
map (n: import (path + ("/" + n))) (
  filter (n: match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) (
    attrNames (readDir path)
  )
)