···358358 else "nixpkgs.localSystem";
359359 pkgsSystem = finalPkgs.stdenv.targetPlatform.system;
360360 in {
361361- assertion = !hasPlatform -> nixosExpectedSystem == pkgsSystem;
361361+ assertion = constructedByMe -> !hasPlatform -> nixosExpectedSystem == pkgsSystem;
362362 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.";
363363 }
364364 )