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 { nixpkgs.system = mkOption {
type = types.str; type = types.uniq types.str;
default = builtins.currentSystem; example = "i686-linux";
description = '' description = ''
Specifies the Nix platform type for which NixOS should be built. Specifies the Nix platform type for which NixOS should be built.
If unset, it defaults to the platform type of your host system. If unset, it defaults to the platform type of your host system.

View File

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