Skip to content

Instantly share code, notes, and snippets.

@kalbasit
Created August 10, 2018 20:45
Show Gist options
  • Save kalbasit/f6de33d5b15b3109e9cff4418588cad6 to your computer and use it in GitHub Desktop.
Save kalbasit/f6de33d5b15b3109e9cff4418588cad6 to your computer and use it in GitHub Desktop.
self: super:
let
pkgs = path:
let content = builtins.readDir path; in
builtins.listToAttrs
map (n: v: {name = n; value = import (path + ("/" + n)); })
(builtins.filter (n: builtins.pathExists (path + ("/" + n + "/default.nix")))
(builtins.attrNames content));
myPkgs = pkgs ../pkgs;
in
myPkgs // {
# other overlay code goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment