2024-11-18 19:48:36 +01:00
|
|
|
{ lib, ... }: {
|
|
|
|
services.geoclue2 = {
|
|
|
|
enable = true;
|
2024-12-10 16:28:04 +01:00
|
|
|
enableWifi = true;
|
|
|
|
enable3G = true;
|
|
|
|
enableCDMA = true;
|
|
|
|
enableNmea = true;
|
2024-12-10 16:29:29 +01:00
|
|
|
enableModmGGPS = true;
|
2024-11-18 21:54:01 +01:00
|
|
|
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
|
2024-12-10 16:28:04 +01:00
|
|
|
submissionUrl = "https://api.beacondb.net/v2/geosubmit";
|
|
|
|
submissionNick = "geoclue2-nixos";
|
2024-11-18 19:48:36 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
location.provider = lib.mkDefault "geoclue2";
|
|
|
|
services.localtimed.enable = true;
|
|
|
|
services.automatic-timezoned.enable = true;
|
2024-11-18 21:54:01 +01:00
|
|
|
services.avahi.enable = true;
|
2024-11-18 19:48:36 +01:00
|
|
|
}
|