From 8ab155c61f5821ffda723de88b0009769771d4f2 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Sun, 17 Apr 2022 08:36:37 +1000 Subject: [PATCH] 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. --- modules/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index a138dc2c9..2d192bc56 100644 --- a/modules/default.nix +++ b/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; }