1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 17:13:53 +00:00
ultima/modules/nixos/misc/locales/default.nix

27 lines
476 B
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ lib, config, True, ... }:
with lib;
let cfg = config.module.misc.locales;
in {
options = {
module.misc.locales = {
enable = mkEnableOption "";
zone = mkOption {
default = null;
type = types.str;
};
};
};
config = mkIf cfg.enable {
time.timeZone = cfg.zone; # TIME
services.chrony = True; # SYNC TIME
i18n = { # LOCALE LANG
defaultLocale = "en_US.UTF-8";
supportedLocales = [ "all" ];
};
};
}