1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

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.
This commit is contained in:
Michael Hoang 2022-04-17 08:36:37 +10:00 committed by GitHub
parent 2e473a7b09
commit 8ab155c61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}