nixpkgs: add indirection to _module.args.pkgs
This allows pkgs to be overridden in such a way that `<nixpkgs>` is never imported, allowing home-manager to be used in environments where `NIX_PATH` is not set. PR #993
This commit is contained in:
parent
e5fb259872
commit
244d795325
|
@ -142,7 +142,7 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
_module.args = {
|
_module.args = {
|
||||||
pkgs = _pkgs;
|
pkgs = mkOverride modules.defaultPriority _pkgs;
|
||||||
pkgs_i686 =
|
pkgs_i686 =
|
||||||
if _pkgs.stdenv.isLinux && _pkgs.stdenv.hostPlatform.isx86
|
if _pkgs.stdenv.isLinux && _pkgs.stdenv.hostPlatform.isx86
|
||||||
then _pkgs.pkgsi686Linux
|
then _pkgs.pkgsi686Linux
|
||||||
|
|
Loading…
Reference in a new issue