refactor(locale): tidy up

This commit is contained in:
ooks-io 2024-04-15 11:29:46 +12:00
parent 8fa0d1b871
commit d7671de87a

View file

@ -2,17 +2,18 @@
let let
cfg = config.systemModules.locale; cfg = config.systemModules.locale;
inherit (lib) mkIf mkDefault;
in in
{ {
config = lib.mkIf cfg.enable { config = mkIf cfg.enable {
i18n = { i18n = {
defaultLocale = lib.mkDefault "en_US.UTF-8"; defaultLocale = mkDefault "en_US.UTF-8";
supportedLocales = lib.mkDefault [ supportedLocales = mkDefault [
"en_US.UTF-8/UTF-8" "en_US.UTF-8/UTF-8"
]; ];
}; };
time.timeZone = lib.mkDefault "Pacific/Auckland"; time.timeZone = mkDefault "Pacific/Auckland";
location.provider = "geoclue2"; location.provider = "geoclue2";
services.geoclue2.enable = true; services.geoclue2.enable = true;
}; };