diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-07 21:03:34 +0000 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-07 21:03:34 +0000 |
| commit | 13593ff313eb79af576fc0523f9fde1c02f6f896 (patch) | |
| tree | ce4eec6af1c424e959092d88325e54dd78bab065 | |
| parent | 33414f69edbf85d92790d9d7efe53b1bc9f9dfd2 (diff) | |
| download | home-13593ff313eb79af576fc0523f9fde1c02f6f896.tar.gz | |
nixos/defaults: enable automatic timezone
| -rw-r--r-- | nixos/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
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; |