mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ in
|
|||
|
||||
config = {
|
||||
_module.args = {
|
||||
pkgs = _pkgs;
|
||||
pkgs = mkOverride modules.defaultPriority _pkgs;
|
||||
pkgs_i686 =
|
||||
if _pkgs.stdenv.isLinux && _pkgs.stdenv.hostPlatform.isx86
|
||||
then _pkgs.pkgsi686Linux
|
||||
|
|
Loading…
Reference in a new issue