From 3f2216a0e6eec61637728666cc1216f37456898a Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 30 Sep 2025 23:22:23 -0500 Subject: fix geoclue main issue of not starting on certain systems without wifi --- users/timmy/localization.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'users') diff --git a/users/timmy/localization.nix b/users/timmy/localization.nix index 6762161..bcbb422 100644 --- a/users/timmy/localization.nix +++ b/users/timmy/localization.nix @@ -1,12 +1,14 @@ -{ lib, ... }: { +{ lib, config, ... }: { time.timeZone = lib.mkDefault "America/Chicago"; # Overwritten by automatic-timezoned i18n.defaultLocale = "en_US.UTF-8"; services.xserver.xkb.layout = "us"; - #services.geoclue2 = { - # enableStatic = true; - # staticLatitude = 41.881832; - # staticLongitude = -87.623177; - # staticAltitude = 100; - # staticAccuracy = 500; - #}; + + # Setup static geoclue2 if wifi is disabled + services.geoclue2 = { + enableStatic = lib.mkDefault (!config._users.timmy.wifi.enable); + staticLatitude = 41.881832; + staticLongitude = -87.623177; + staticAltitude = 600; + staticAccuracy = 500; + }; } -- cgit v1.2.3