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