-
-
Save dustinlacewell-wk/19c08ef6924f6ee1aed5a6b0d86707a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with (import <nixpkgs> {}).lib; | |
with builtins; | |
let | |
items = readDir ./.; | |
dirs = filterAttrs (item: type: type == "directory") items; | |
paths = map (dir: toPath ./. + "/${dir}") (attrNames dirs); | |
modules = filter (path: pathExists (toPath "${path}/default.nix")) paths; | |
defaults = map (module: import module) modules; | |
in | |
defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment