mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-01 10:23:57 +01:00
fix(nixpak): pass the session TZ through to sandboxes
ICU takes the zone name from the /etc/localtime symlink target path. A bind mount turns it into a plain file, which keeps the TZif data but loses the path, so the only identifier left is the ambiguous "CST" abbreviation that ICU reads from the file and maps to America/Chicago. Export TZ from time.timeZone and pass TZ/TZDIR through the nixpak env allowlist. Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
13d95daa36
commit
c4a00e507c
5 files changed
+19
-1
No files matched your search
@@ -1,8 +1,11 @@
|
||||
{ lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
# Set your time zone. A default: the computer-use VMs match their proxy region.
|
||||
time.timeZone = lib.mkDefault "Asia/Shanghai";
|
||||
|
||||
# Passed through to nixpak sandboxes; see hardening/nixpaks/modules/desktop-base.nix.
|
||||
environment.sessionVariables.TZ = config.time.timeZone;
|
||||
|
||||
# English is the default. Chinese overrides only the categories where the
|
||||
# en_US default is factually wrong for China (metric, A4, CNY); everything
|
||||
# else, including date/time names, stays English.
|
||||
|
||||
Reference in new issue
Block a user