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];