summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-25 15:56:23 -0700
committerFuwn <[email protected]>2024-09-25 15:56:23 -0700
commit05182c21ada394ae13773904cf03a60bf1595b8e (patch)
tree0926b0d6612ca256dd40b44aef0849f8324409a9 /lib
parentserver: move allowed ports to modules (diff)
downloadnixos-config-05182c21ada394ae13773904cf03a60bf1595b8e.tar.xz
nixos-config-05182c21ada394ae13773904cf03a60bf1595b8e.zip
pkgs: mount as overlay
Diffstat (limited to 'lib')
-rw-r--r--lib/overlays.nix9
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)
+ )
+)