summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-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;
+ };
}