nix/nixos/common/services/geoclue.nix
2024-12-10 16:29:29 +01:00

18 lines
510 B
Nix

{ lib, ... }: {
services.geoclue2 = {
enable = true;
enableWifi = true;
enable3G = true;
enableCDMA = true;
enableNmea = true;
enableModmGGPS = 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;
}