Fix #7252 - NixOS Manual: Carry the current system value to evaluation of the manual.

This commit is contained in:
Nicolas B. Pierron 2015-04-08 23:12:11 +02:00
parent 3eef61a6eb
commit 296e6c4991
2 changed files with 3 additions and 2 deletions

View File

@ -59,8 +59,8 @@ in
};
nixpkgs.system = mkOption {
type = types.str;
default = builtins.currentSystem;
type = types.uniq types.str;
example = "i686-linux";
description = ''
Specifies the Nix platform type for which NixOS should be built.
If unset, it defaults to the platform type of your host system.

View File

@ -14,6 +14,7 @@ let
versionModule =
{ system.nixosVersionSuffix = config.system.nixosVersionSuffix;
system.nixosRevision = config.system.nixosRevision;
nixpkgs.system = config.nixpkgs.system;
};
eval = evalModules {