nix/nixos/common/services/geoclue.nix

19 lines
510 B
Nix
Raw Normal View History

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:34:58 +01:00
enableModemGPS = 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
}