From 862a6063d0fba6b6b850d9b7e2ef756636cac226 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 17 Feb 2025 20:24:12 -0800 Subject: [PATCH] fix(nixos): Set timezone to UTC on servers --- modules/nixos/base/i18n/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/nixos/base/i18n/default.nix b/modules/nixos/base/i18n/default.nix index 7c190fa..ed86d6d 100644 --- a/modules/nixos/base/i18n/default.nix +++ b/modules/nixos/base/i18n/default.nix @@ -1,5 +1,9 @@ -_: { - time.timeZone = "America/Los_Angeles"; +{config, ...}: { + time.timeZone = + if config.marleyos.isServer + then "UTC" + else "America/Los_Angeles"; + i18n = { defaultLocale = "en_US.UTF-8";