modules: Export `pkgs` to match NixOS (#2696)

This makes it a lot easier to access the `pkgs` that would be used to
build the home configuration, e.g.

    nix build ./dotfiles#homeConfigurations."user@host".pkgs.vim

This is useful as it allows access to a Nixpkgs that has been
instiantiated with config and overlays.
main
Michael Hoang 2 years ago committed by GitHub
parent 2e473a7b09
commit 8ab155c61f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/default.nix

@ -61,4 +61,6 @@ in
sort (a: b: a.time > b.time) (
filter (a: a.condition) rawModule.config.news.entries
);
inherit (module._module.args) pkgs;
}

Loading…
Cancel
Save