Fix #7252 - NixOS Manual: Carry the current system value to evaluation of the manual.
This commit is contained in:
parent
3eef61a6eb
commit
296e6c4991
@ -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.
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user