mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-08-20 10:07:17 -05:00
15 lines
494 B
Nix
15 lines
494 B
Nix
|
# import all nix files in the current folder,
|
||
|
# and execute them with args as parameters
|
||
|
# The return value is a list of all execution results,
|
||
|
# which is the list of overlays
|
||
|
args:
|
||
|
# execute and import all overlay files in the current
|
||
|
# directory with the given args
|
||
|
builtins.map
|
||
|
# execute and import the overlay file
|
||
|
(f: (import (./. + "/${f}") args))
|
||
|
# find all overlay files in the current directory
|
||
|
(builtins.filter
|
||
|
(f: f != "default.nix")
|
||
|
(builtins.attrNames (builtins.readDir ./.)))
|