Skip to content

Commit

Permalink
nixos: Respect nixpkgs.overlays (#22221)
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshusa authored and fpletz committed Jan 31, 2017
1 parent d409d23 commit 68b4a1f
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions nixos/modules/misc/nixpkgs.nix
Expand Up @@ -45,9 +45,8 @@ let
in

{
options = {

nixpkgs.config = mkOption {
options.nixpkgs = {
config = mkOption {
default = {};
example = literalExample
''
Expand All @@ -61,7 +60,7 @@ in
'';
};

nixpkgs.overlays = mkOption {
overlays = mkOption {
default = [];
example = literalExample
''
Expand All @@ -85,7 +84,7 @@ in
'';
};

nixpkgs.system = mkOption {
system = mkOption {
type = types.str;
example = "i686-linux";
description = ''
Expand All @@ -95,14 +94,9 @@ in
multi-platform deployment, or when building virtual machines.
'';
};

};

config = {
_module.args.pkgs = import ../../.. {
system = config.nixpkgs.system;

inherit (config.nixpkgs) config;
};
_module.args.pkgs = import ../../.. config.nixpkgs;
};
}

0 comments on commit 68b4a1f

Please sign in to comment.