diff options
| author | Fuwn <[email protected]> | 2024-09-25 15:56:23 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-25 15:56:23 -0700 |
| commit | 05182c21ada394ae13773904cf03a60bf1595b8e (patch) | |
| tree | 0926b0d6612ca256dd40b44aef0849f8324409a9 /lib | |
| parent | server: move allowed ports to modules (diff) | |
| download | nixos-config-05182c21ada394ae13773904cf03a60bf1595b8e.tar.xz nixos-config-05182c21ada394ae13773904cf03a60bf1595b8e.zip | |
pkgs: mount as overlay
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/overlays.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/overlays.nix b/lib/overlays.nix new file mode 100644 index 0000000..21ba247 --- /dev/null +++ b/lib/overlays.nix @@ -0,0 +1,9 @@ +let + path = ../overlays; +in +with builtins; +map (n: import (path + ("/" + n))) ( + filter (n: match ".*\\.nix" n != null || pathExists (path + ("/" + n + "/default.nix"))) ( + attrNames (readDir path) + ) +) |