nixos/nixpkgs.nix: use less confusing example systems

system and config shouldn't both be specified — each will be filled in
based on the other when the system is elaborated.

+4 -4
+4 -4
nixos/modules/misc/nixpkgs.nix
··· 187 187 188 188 hostPlatform = mkOption { 189 189 type = types.either types.str types.attrs; # TODO utilize lib.systems.parsedPlatform 190 - example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; }; 190 + example = { system = "aarch64-linux"; }; 191 191 # Make sure that the final value has all fields for sake of other modules 192 192 # referring to this. TODO make `lib.systems` itself use the module system. 193 193 apply = lib.systems.elaborate; ··· 205 205 buildPlatform = mkOption { 206 206 type = types.either types.str types.attrs; # TODO utilize lib.systems.parsedPlatform 207 207 default = cfg.hostPlatform; 208 - example = { system = "x86_64-linux"; config = "x86_64-unknown-linux-gnu"; }; 208 + example = { system = "x86_64-linux"; }; 209 209 # Make sure that the final value has all fields for sake of other modules 210 210 # referring to this. 211 211 apply = lib.systems.elaborate; ··· 228 228 localSystem = mkOption { 229 229 type = types.attrs; # TODO utilize lib.systems.parsedPlatform 230 230 default = { inherit (cfg) system; }; 231 - example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; }; 231 + example = { system = "aarch64-linux"; }; 232 232 # Make sure that the final value has all fields for sake of other modules 233 233 # referring to this. TODO make `lib.systems` itself use the module system. 234 234 apply = lib.systems.elaborate; ··· 262 262 crossSystem = mkOption { 263 263 type = types.nullOr types.attrs; # TODO utilize lib.systems.parsedPlatform 264 264 default = null; 265 - example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; }; 265 + example = { system = "aarch64-linux"; }; 266 266 description = lib.mdDoc '' 267 267 Systems with a recently generated `hardware-configuration.nix` 268 268 may instead specify *only* {option}`nixpkgs.buildPlatform`,