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

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