diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-05 17:29:08 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-08-05 17:37:11 +0200 |
commit | 2cd7c1f19888ae73bf7ef0f41a45680cfb86334a (patch) | |
tree | 1d153e8744e4fb693b78f5a7c1ac445201b610a2 /nixos/modules/misc | |
parent | 91e71725d49c185401f459f58062b02bcbf1651e (diff) | |
download | nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.gz nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.bz2 nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.lz nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.xz nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.zst nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.zip |
Unify NixOS and Nixpkgs channel structure
This is primarily to ensure that -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz and -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz and -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz behave consistently. It also allows installing packages via "nix-env -iA nixos.<pkg>" rather than "nixos.pkgs.<pkg>". It would be even better to allow "nixpkgs.<pkg>", but that requires a change to nix-channel. Fixes #7659.
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/extra-arguments.nix | 2 | ||||
-rw-r--r-- | nixos/modules/misc/nixpkgs.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/misc/extra-arguments.nix b/nixos/modules/misc/extra-arguments.nix index ff2ff7cd4322..02ac6e7a59dc 100644 --- a/nixos/modules/misc/extra-arguments.nix +++ b/nixos/modules/misc/extra-arguments.nix @@ -2,7 +2,7 @@ { _module.args = { - pkgs_i686 = import ../../lib/nixpkgs.nix { + pkgs_i686 = import ../../.. { system = "i686-linux"; config.allowUnfree = true; }; diff --git a/nixos/modules/misc/nixpkgs.nix b/nixos/modules/misc/nixpkgs.nix index fb5516c953c2..5eb38c510b48 100644 --- a/nixos/modules/misc/nixpkgs.nix +++ b/nixos/modules/misc/nixpkgs.nix @@ -72,7 +72,7 @@ in }; config = { - _module.args.pkgs = import ../../lib/nixpkgs.nix { + _module.args.pkgs = import ../../.. { system = config.nixpkgs.system; inherit (config.nixpkgs) config; |