2024-12-17 12:10:05 +00:00
|
|
|
{
|
|
|
|
x,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-11-21 09:24:15 +00:00
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-17 12:10:05 +00:00
|
|
|
let
|
|
|
|
cfg = config.module.misc.locales;
|
|
|
|
in
|
|
|
|
{
|
2024-11-21 09:24:15 +00:00
|
|
|
options = {
|
|
|
|
module.misc.locales = {
|
2024-12-09 01:15:55 +00:00
|
|
|
enable = mkBool;
|
|
|
|
zone = mkOpt.str;
|
2024-11-21 09:24:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
time.timeZone = cfg.zone; # TIME
|
|
|
|
services.chrony = True; # SYNC TIME
|
2024-12-17 12:10:05 +00:00
|
|
|
i18n = {
|
|
|
|
# LOCALE LANG
|
2024-11-21 09:24:15 +00:00
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
supportedLocales = [ "all" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|