mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-05 09:58:50 +03:00
3c6ae39a0d
empty now), do more of bashrc.sh declaratively, and moved nsswitch generation to modules/config/nsswitch.nix. svn path=/nixos/branches/modular-nixos/; revision=15754
26 lines
391 B
Nix
26 lines
391 B
Nix
{pkgs, config, ...}:
|
|
|
|
let
|
|
|
|
options = {
|
|
|
|
time.timeZone = pkgs.lib.mkOption {
|
|
default = "CET";
|
|
example = "America/New_York";
|
|
description = "The time zone used when displaying times and dates.";
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
require = [options];
|
|
|
|
environment.shellInit =
|
|
''
|
|
export TZ=${config.time.timeZone}
|
|
export TZDIR=${pkgs.glibc}/share/zoneinfo
|
|
'';
|
|
}
|