{ lib, ... }: {
  services.geoclue2 = {
    enable = true;
    enableWifi = true; 
    enable3G = true;
    enableCDMA = true;
    enableNmea = true;
    enableModemGPS = true;
    geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
    submissionUrl = "https://api.beacondb.net/v2/geosubmit";
    submissionNick = "geoclue2-nixos";
  };

  location.provider = lib.mkDefault "geoclue2";
  services.localtimed.enable = true;
  services.automatic-timezoned.enable = true;
  services.avahi.enable = true;
}