Skip to content

Commit

Permalink
nixos: use pkgsi686Linux for pkgs_i686 (#24772)
Browse files Browse the repository at this point in the history
  • Loading branch information
corngood authored and vcunat committed Apr 26, 2017
1 parent a4fc2ee commit 7deb425
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
10 changes: 0 additions & 10 deletions nixos/modules/misc/extra-arguments.nix
Expand Up @@ -2,16 +2,6 @@

{
_module.args = {
pkgs_i686 = import ../../.. {
system = "i686-linux";
# FIXME: we enable config.allowUnfree to make packages like
# nvidia-x11 available. This isn't a problem because if the user has
# ‘nixpkgs.config.allowUnfree = false’, then evaluation will fail on
# the 64-bit package anyway. However, it would be cleaner to respect
# nixpkgs.config here.
config.allowUnfree = true;
};

utils = import ../../lib/utils.nix pkgs;
};
}
7 changes: 6 additions & 1 deletion nixos/modules/misc/nixpkgs.nix
Expand Up @@ -42,6 +42,8 @@ let
merge = lib.mergeOneOption;
};

_pkgs = import ../../.. config.nixpkgs;

in

{
Expand Down Expand Up @@ -97,6 +99,9 @@ in
};

config = {
_module.args.pkgs = import ../../.. config.nixpkgs;
_module.args = {
pkgs = _pkgs;
pkgs_i686 = _pkgs.pkgsi686Linux;
};
};
}

0 comments on commit 7deb425

Please sign in to comment.