From 1bd112d4a72b0953c1e925fbc4cae09f320cff3e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 29 Mar 2007 17:46:36 +0000 Subject: [PATCH] * Set the TZDIR variable so that the KDE clock can find the timezone definitions (NIXOS-56). svn path=/nixos/trunk/; revision=8488 --- system/etc.nix | 2 +- system/etc/profile.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/system/etc.nix b/system/etc.nix index 15314a3c57a..6d0bf80a240 100644 --- a/system/etc.nix +++ b/system/etc.nix @@ -84,7 +84,7 @@ import ../helpers/make-etc.nix { source = pkgs.substituteAll { src = ./etc/profile.sh; inherit systemPath wrapperDir; - inherit (pkgs) kernel; + inherit (pkgs) kernel glibc; timeZone = config.get ["time" "timeZone"]; }; target = "profile"; diff --git a/system/etc/profile.sh b/system/etc/profile.sh index 89af67ea668..9235876c6bb 100644 --- a/system/etc/profile.sh +++ b/system/etc/profile.sh @@ -3,6 +3,7 @@ export MODULE_DIR=@kernel@/lib/modules export NIX_CONF_DIR=/nix/etc/nix export PAGER=less export TZ=@timeZone@ +export TZDIR=@glibc@/share/zoneinfo export FONTCONFIG_FILE=/etc/fonts/fonts.conf