From e2e179c0e5449b2159a0b92c27b2842a20769535 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 19 Aug 2025 08:50:16 -0400 Subject: [PATCH] Try to fix automatic timezone issues --- hosts/x86_64-linux/swan/default.nix | 3 --- platforms/nixos/modules/nmasur/profiles/home.nix | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/x86_64-linux/swan/default.nix b/hosts/x86_64-linux/swan/default.nix index 73b6672..e01d833 100644 --- a/hosts/x86_64-linux/swan/default.nix +++ b/hosts/x86_64-linux/swan/default.nix @@ -33,9 +33,6 @@ rec { system.stateVersion = "23.05"; - # Overrides - services.automatic-timezoned.enable = false; - # Not sure what's necessary but too afraid to remove anything boot.initrd.availableKernelModules = [ "xhci_pci" diff --git a/platforms/nixos/modules/nmasur/profiles/home.nix b/platforms/nixos/modules/nmasur/profiles/home.nix index 5ccc645..934c01c 100644 --- a/platforms/nixos/modules/nmasur/profiles/home.nix +++ b/platforms/nixos/modules/nmasur/profiles/home.nix @@ -24,6 +24,11 @@ in # Enable automatic timezone updates based on location services.automatic-timezoned.enable = lib.mkDefault true; + services.geoclue2 = { + # see: https://github.com/NixOS/nixpkgs/issues/68489#issuecomment-1484030107 + enableDemoAgent = lib.mkForce true; + geoProviderUrl = "https://beacondb.net/v1/geolocate"; + }; # Allow reading from Windows drives boot.supportedFilesystems = [ "ntfs" ];