From 68513075f7a7bd8c0cc809e192511964bd7c7b4f Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 21 Nov 2024 11:24:34 +0530 Subject: [PATCH] skipper: try geoclue --- hosts/skipper/services/default.nix | 1 + hosts/skipper/services/geoclue.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 hosts/skipper/services/geoclue.nix diff --git a/hosts/skipper/services/default.nix b/hosts/skipper/services/default.nix index c143fc6..621b092 100644 --- a/hosts/skipper/services/default.nix +++ b/hosts/skipper/services/default.nix @@ -2,6 +2,7 @@ imports = [ ./btrfs.nix ./dbus.nix + ./geoclue.nix ./keyd.nix ./pipewire.nix ./udev.nix diff --git a/hosts/skipper/services/geoclue.nix b/hosts/skipper/services/geoclue.nix new file mode 100644 index 0000000..ab7b20a --- /dev/null +++ b/hosts/skipper/services/geoclue.nix @@ -0,0 +1,13 @@ +_: { + location.provider = "geoclue2"; + services.geoclue2 = { + enable = true; + enable3G = false; + enableCDMA = false; + enableNmea = false; + enableWifi = true; + enableModemGPS = false; + enableDemoAgent = false; + geoProviderUrl = "https://beacondb.net/v1/geolocate"; + }; +}