Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created October 13, 2017 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save infinisil/af67f8c91c1efd4f4c2f0c2cf0254d89 to your computer and use it in GitHub Desktop.
Save infinisil/af67f8c91c1efd4f4c2f0c2cf0254d89 to your computer and use it in GitHub Desktop.
with (import <nixpkgs> {}).lib;
with builtins;
let
items = readDir ./.;
dirs = filterAttrs (item: type: type == "directory") items;
defaults = map (dir: import (toPath ./. + "/${dir}")) (attrNames dirs);
in
defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment