Unverified Commit aad0072d authored by Martin Weinelt's avatar Martin Weinelt
Browse files

buildMozillaMach: disable geoclue when geolocation support is disabled

This was an oversight since support for geoclue was added in Firefox 102.
parent 672ccbdd
Loading
Loading
Loading
Loading
+15 −6
Original line number Diff line number Diff line
@@ -248,11 +248,20 @@ let
      }
    );

  defaultPrefs = lib.optionalAttrs geolocationSupport {
  defaultPrefs =
    if geolocationSupport then
      {
        "geo.provider.network.url" = {
          value = "https://api.beacondb.net/v1/geolocate";
          reason = "We have no Google API keys and Mozilla Location Services were retired.";
        };
      }
    else
      {
        "geo.provider.use_geoclue" = {
          value = false;
          reason = "Geolocation support has been disabled through the `geolocationSupport` package attribute.";
        };
      };

  defaultPrefsFile = pkgs.writeText "nixos-default-prefs.js" (