Update groclue
This commit is contained in:
parent
803cae5816
commit
51431acee8
5 changed files with 13 additions and 13 deletions
|
@ -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 = {
|
||||||
|
|
10
nixos/common/services/geoclue.nix
Normal file
10
nixos/common/services/geoclue.nix
Normal 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;
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue