1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2024-12-29 19:43:51 +00:00
ultima/modules/nixos/misc/locales/default.nix

30 lines
424 B
Nix
Raw Normal View History

{
x,
lib,
config,
...
}:
2024-11-21 09:24:15 +00:00
with lib;
2024-12-09 01:15:55 +00:00
with x;
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
i18n = {
# LOCALE LANG
2024-11-21 09:24:15 +00:00
defaultLocale = "en_US.UTF-8";
supportedLocales = [ "all" ];
};
};
}