summaryrefslogtreecommitdiff
path: root/modules/shared/traits/locale.nix
blob: a260988965365704335cc7ffce3f00ee41db1e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ 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"; }) ];
}