From 989369d4881ef585c3770075d474e31d3acef976 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Sat, 18 Jan 2025 20:39:17 +0200 Subject: [PATCH] Add module to make timezone imperatively settable --- hosts/julius-framework/default.nix | 1 + modules/timezone-imperatively.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 modules/timezone-imperatively.nix diff --git a/hosts/julius-framework/default.nix b/hosts/julius-framework/default.nix index 33a2c9b..fd71247 100644 --- a/hosts/julius-framework/default.nix +++ b/hosts/julius-framework/default.nix @@ -13,6 +13,7 @@ ../../modules/laptop.nix ../../modules/network.nix ../../modules/locale.nix + ../../modules/timezone-imperatively.nix ../../modules/boot-login.nix ../../modules/fonts.nix ../../modules/cli-essentials.nix diff --git a/modules/timezone-imperatively.nix b/modules/timezone-imperatively.nix new file mode 100644 index 0000000..a5b9402 --- /dev/null +++ b/modules/timezone-imperatively.nix @@ -0,0 +1,10 @@ +{ + pkgs, + lib, + ... +}: { + # Set timezone to null to make it imperatively settable + time.timeZone = lib.mkForce null; + + services.tzupdate.enable = true; +}