From 4b15507e9f174e21f74ccfca35f030040ce89616 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Tue, 24 Feb 2026 05:03:37 -0600 Subject: [PATCH] Laptops use automatic-timezoned --- common/configuration.nix | 5 ++++- common/laptop-things.nix | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common/configuration.nix b/common/configuration.nix index 34af051..95e2227 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -68,7 +68,10 @@ in networking.networkmanager.enable = true; # Set your time zone. - time.timeZone = "America/Chicago"; + time.timeZone = let + automatic = config.services.automatic-timezoned.enable; + in + lib.mkIf (!automatic) "America/Chicago"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; diff --git a/common/laptop-things.nix b/common/laptop-things.nix index 753d84e..af185a5 100644 --- a/common/laptop-things.nix +++ b/common/laptop-things.nix @@ -27,6 +27,8 @@ }; }; }; + + automatic-timezoned.enable = true; }; networking.networkmanager.plugins = [pkgs.networkmanager-openvpn];