summaryrefslogtreecommitdiff
path: root/modules/nixos/traits/locale.nix
blob: bd30819055c350a932b107c45f620efcc3c309fe (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.traits.locale;
in
{
  options.traits.locale = {
    en_US = {
      enable = lib.mkEnableOption "en_US locale";
    };
  };

  config = lib.mkMerge [
    (lib.mkIf cfg.en_US.enable {
      i18n = {
        supportedLocales = [ "en_US.UTF-8/UTF-8" ];

        defaultLocale = "en_US.UTF-8";
      };
    })
  ];
}