Skip to content

Commit

Permalink
home/services/wayland/gammastep: init
Browse files Browse the repository at this point in the history
Currently, provider = "geoclue2" does not work due to geoclue not working.
Geoclue used Mozilla's Geolocation API until 2024-07-12, after which it
was shut down. Now it needs to switch to a different geolocation provider.
See https://codeberg.org/beacondb/beacondb/issues/5
  • Loading branch information
fufexan committed Aug 14, 2024
1 parent 587f13e commit aa74a8f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/profiles/io/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
../../services/system/udiskie.nix

# wayland-specific
../../services/wayland/gammastep.nix
../../services/wayland/hyprpaper.nix
../../services/wayland/hypridle.nix

Expand Down
15 changes: 15 additions & 0 deletions home/services/wayland/gammastep.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
services.gammastep = {
enable = true;
tray = true;

# stopgap until geoclue's wifi location is fixed
provider = "manual";
latitude = 45.0;
longitude = 25.0;

enableVerboseLogging = true;

settings.general.adjustment-method = "wayland";
};
}
12 changes: 11 additions & 1 deletion system/services/location.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@
location.provider = "geoclue2";

# provide location
services.geoclue2.enable = true;
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
submissionUrl = "https://beacondb.net/v2/geosubmit";
submissionNick = "geoclue";

appConfig.gammastep = {
isAllowed = true;
isSystem = false;
};
};
}

0 comments on commit aa74a8f

Please sign in to comment.