Update groclue

This commit is contained in:
albert 2024-11-18 19:48:36 +01:00
parent 803cae5816
commit 51431acee8
Signed by: albert
GPG key ID: 3895DD267CA11BA9
5 changed files with 13 additions and 13 deletions

View file

@ -4,17 +4,6 @@
# ./set-darkmode-service.nix # ./set-darkmode-service.nix
]; ];
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
};
# Will fail if started before Tailscale
networking.extraHosts = ''
35.190.72.216 location.services.mozilla.com
'';
# Enable sound with pipewire. # Enable sound with pipewire.
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {

View file

@ -0,0 +1,10 @@
{ lib, ... }: {
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
};
location.provider = lib.mkDefault "geoclue2";
services.localtimed.enable = true;
services.automatic-timezoned.enable = true;
}

View file

@ -11,6 +11,7 @@
./common/services/tailscale.nix ./common/services/tailscale.nix
./common/services/gnupg-agent.nix ./common/services/gnupg-agent.nix
./common/services/opensnitch.nix ./common/services/opensnitch.nix
./common/services/geoclue.nix
# Software # Software
./common/software/cli/clean-hm.nix ./common/software/cli/clean-hm.nix

View file

@ -38,7 +38,6 @@
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Warsaw"; time.timeZone = "Europe/Warsaw";
location.provider = "geoclue2";
services.automatic-timezoned.enable = true; services.automatic-timezoned.enable = true;

View file

@ -9,6 +9,7 @@
./common/services/tailscale.nix ./common/services/tailscale.nix
./common/services/promtail.nix ./common/services/promtail.nix
./common/services/telegraf.nix ./common/services/telegraf.nix
./common/services/geoclue.nix
# Software # Software
./common/software/cli/clean-hm.nix ./common/software/cli/clean-hm.nix