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

24 lines
410 B
Nix

{ x, lib, config, ... }:
with lib;
with x;
let cfg = config.module.misc.locales;
in {
options = {
module.misc.locales = {
enable = mkBool;
zone = mkOpt.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" ];
};
};
}