Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created March 7, 2020 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovesegfault/c33bd967894c1be271d2d22bb08992d6 to your computer and use it in GitHub Desktop.
Save lovesegfault/c33bd967894c1be271d2d22bb08992d6 to your computer and use it in GitHub Desktop.
{ lib }: let
overlayFiles = lib.traceVal builtins.attrNames (builtins.readDir ./.);
overlayObjs = lib.traceVal builtins.map (f: import ( ./. + "/${f}" ) ) overlayFiles;
overlays = lib.traceVal builtins.filter (elem: builtins.isFunction elem) overlayObjs;
in overlays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment