git.iko.soy/typeable/nixpkgs
on master help sign in
Fix #7252 - NixOS Manual: Carry the current system value to evaluation of the manual.
commit296e6c499199b32315c071654b3dee7f40adb1a4 authorNicolas B. Pierron <nicolas.b.pierron@gmail.com> dateWed 8 Apr 2015, 23:12 (12 years ago) parent3eef61a
2 files changed+3−2
nixos/modules/misc/nixpkgs.nix+2−2 nixos/modules/services/misc/nixos-manual.nix+1
nixos/modules/misc/nixpkgs.nix+2−2
@@ -59,8 +59,8 @@ in
5959 };
6060
6161 nixpkgs.system = mkOption {
62− type = types.str;
63− default = builtins.currentSystem;
62+ type = types.uniq types.str;
63+ example = "i686-linux";
6464 description = ''
6565 Specifies the Nix platform type for which NixOS should be built.
6666 If unset, it defaults to the platform type of your host system.
nixos/modules/services/misc/nixos-manual.nix+1
@@ -14,6 +14,7 @@ let
1414 versionModule =
1515 { system.nixosVersionSuffix = config.system.nixosVersionSuffix;
1616 system.nixosRevision = config.system.nixosRevision;
17+ nixpkgs.system = config.nixpkgs.system;
1718 };
1819
1920 eval = evalModules {