summaryrefslogtreecommitdiff
path: root/modules/nixos/base/locale.nix
blob: c4f8497c8e7b26f5e7bd6e9d25c5f480eef3244c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  lib,
  ...
}: let
  cfg = config.getchoo.base.defaultLocale;
  inherit (lib) mkEnableOption mkIf;
in {
  options.getchoo.base.defaultLocale.enable = mkEnableOption "enable default locale";

  config = mkIf cfg.enable {
    i18n = {
      supportedLocales = [
        "en_US.UTF-8/UTF-8"
      ];
      defaultLocale = "en_US.UTF-8";
    };

    time.timeZone = "America/New_York";
  };
}