-
-
Save dminuoso/43fb436c2feb133a79615186ce5d13aa to your computer and use it in GitHub Desktop.
This file contains 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
self: super: | |
with super.lib; | |
let | |
# Using the nixos plumbing that's used to evaluate the config... | |
eval = import <nixpkgs/nixos/lib/eval-config.nix>; | |
# Evaluate the config, | |
paths = (eval {modules = [(import <nixos-config>)];}) | |
# then get the `nixpkgs.overlays` option. | |
.config.nixpkgs.overlays | |
; | |
in | |
foldl' (flip extends) (_: super) paths self | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment