From 244d7953252617073a83b95ffc4dd1f6e1fae803 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Wed, 15 Jan 2020 12:57:26 -0800 Subject: [PATCH] nixpkgs: add indirection to `_module.args.pkgs` This allows pkgs to be overridden in such a way that `` is never imported, allowing home-manager to be used in environments where `NIX_PATH` is not set. PR #993 --- modules/misc/nixpkgs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/misc/nixpkgs.nix b/modules/misc/nixpkgs.nix index e7c0d8f25..7b0904a5f 100644 --- a/modules/misc/nixpkgs.nix +++ b/modules/misc/nixpkgs.nix @@ -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