···358 else "nixpkgs.localSystem";
359 pkgsSystem = finalPkgs.stdenv.targetPlatform.system;
360 in {
361- assertion = !hasPlatform -> nixosExpectedSystem == pkgsSystem;
362 message = "The NixOS nixpkgs.pkgs option was set to a Nixpkgs invocation that compiles to target system ${pkgsSystem} but NixOS was configured for system ${nixosExpectedSystem} via NixOS option ${nixosOption}. The NixOS system settings must match the Nixpkgs target system.";
363 }
364 )
···358 else "nixpkgs.localSystem";
359 pkgsSystem = finalPkgs.stdenv.targetPlatform.system;
360 in {
361+ assertion = constructedByMe -> !hasPlatform -> nixosExpectedSystem == pkgsSystem;
362 message = "The NixOS nixpkgs.pkgs option was set to a Nixpkgs invocation that compiles to target system ${pkgsSystem} but NixOS was configured for system ${nixosExpectedSystem} via NixOS option ${nixosOption}. The NixOS system settings must match the Nixpkgs target system.";
363 }
364 )