summaryrefslogtreecommitdiff
path: root/users/timmy
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-09-30 23:22:23 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-09-30 23:22:29 -0500
commit3f2216a0e6eec61637728666cc1216f37456898a (patch)
treea7a853a07d0fc27376bae8ac5b679f83264b01c4 /users/timmy
parentd264837481a99d40b1eca5e383ee8a76787d3feb (diff)
downloadnixos-3f2216a0e6eec61637728666cc1216f37456898a.tar.xz
nixos-3f2216a0e6eec61637728666cc1216f37456898a.zip
fix geoclue main issue of not starting on certain systems without wifi
Diffstat (limited to 'users/timmy')
-rw-r--r--users/timmy/localization.nix18
1 files changed, 10 insertions, 8 deletions
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;
+ };
}