Skip to content

Instantly share code, notes, and snippets.

@dminuoso

dminuoso/foo.nix Secret

Created May 23, 2019 21:49
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 dminuoso/43fb436c2feb133a79615186ce5d13aa to your computer and use it in GitHub Desktop.
Save dminuoso/43fb436c2feb133a79615186ce5d13aa to your computer and use it in GitHub Desktop.
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