mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 22:30:25 +01:00
15 lines
428 B
Nix
15 lines
428 B
Nix
args:
|
|
# execute and import all overlay files in the current directory with the given args
|
|
builtins.map (f: (import (./. + "/${f}") args)) # execute and import the overlay file
|
|
|
|
(
|
|
builtins.filter # find all overlay files in the current directory
|
|
|
|
(
|
|
f:
|
|
f != "default.nix" # ignore default.nix
|
|
&& f != "README.md" # ignore README.md
|
|
)
|
|
(builtins.attrNames (builtins.readDir ./.))
|
|
)
|