mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-11 21:12:00 +01:00
15 lines
406 B
Nix
15 lines
406 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 ./.)))
|