mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-01 17:13:53 +00:00
27 lines
476 B
Nix
27 lines
476 B
Nix
|
{ 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" ];
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|