summary refs log tree commit diff
path: root/nixos/modules/misc/extra-arguments.nix
blob: 19002b17dace89e4e1a207d8e1f20dc5a1cd9981 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, pkgs, config, ... }:

{
  _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;
  };
}