Skip to content

Commit 8ab155c

Browse files
authored
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.
1 parent 2e473a7 commit 8ab155c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ in
6161
sort (a: b: a.time > b.time) (
6262
filter (a: a.condition) rawModule.config.news.entries
6363
);
64+
65+
inherit (module._module.args) pkgs;
6466
}

0 commit comments

Comments
 (0)