Switch geoprovider from google to beacondb

This commit is contained in:
SebastianStork 2025-02-25 23:06:21 +01:00
parent 9c787eb1fe
commit a2bd7dd92f
3 changed files with 8 additions and 23 deletions

View file

@ -3,23 +3,10 @@
options.myConfig.geoclue.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.geoclue.enable {
sops = {
secrets."geolocation-api-key" = { };
templates."geoclue-location-service.conf" = {
owner = "geoclue";
path = "/etc/geoclue/conf.d/location-service.conf";
content = ''
[wifi]
url=https://www.googleapis.com/geolocation/v1/geolocate?key=${
config.sops.placeholder."geolocation-api-key"
}
'';
};
};
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
appConfig.gammastep = {
isAllowed = true;
isSystem = false;