From 13593ff313eb79af576fc0523f9fde1c02f6f896 Mon Sep 17 00:00:00 2001 From: Stefan Weigl-Bosker Date: Mon, 7 Jul 2025 21:03:34 +0000 Subject: nixos/defaults: enable automatic timezone --- nixos/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'nixos/default.nix') diff --git a/nixos/default.nix b/nixos/default.nix index 69793bc..aac8986 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -17,11 +17,11 @@ in default = "nixos"; }; - timezone = mkOption { - type = lib.types.str; - description = "Local timezone"; - default = "America/New_York"; - }; + # timezone = mkOption { + # type = lib.types.str; + # description = "Fallback timezone if location cannot be determined"; + # default = "America/New_York"; + # }; username = mkOption { type = lib.types.str; @@ -49,7 +49,9 @@ in settings.experimental-features = [ "nix-command" "flakes" ]; }; - time.timeZone = cfg.timezone; + # time.timeZone = lib.mkDefault cfg.timezone; + services.automatic-timezoned.enable = true; + nixpkgs.config.allowUnfree = true; boot.kernelPackages = pkgs.linuxPackages_latest; -- cgit v1.2.3