refactor(locale): tidy up
This commit is contained in:
parent
8fa0d1b871
commit
d7671de87a
1 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue