summaryrefslogtreecommitdiff
path: root/modules/shared/traits/locale.nix
blob: 9c07c14e8a33035620e9b9ed652fffcaa5ff4184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.traits.locale;
in {
  options.traits.locale = {
    US-east = {
      enable = lib.mkEnableOption "eastern United States locale";
    };
  };

  config = lib.mkMerge [
    (lib.mkIf cfg.US-east.enable {
      time.timeZone = "America/New_York";
    })
  ];
}