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

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

    time = {
      hardwareClockInLocalTime = true;
      timeZone = "America/New_York";
    };
  };
}