mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Switch geoprovider from google to beacondb
This commit is contained in:
parent
9c787eb1fe
commit
a2bd7dd92f
3 changed files with 8 additions and 23 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue