feat(localization): add enable option
This commit is contained in:
1 parent
ac4e8aacbd
commit
a11e6b6a11
1 file changed
+10
-3
@@ -1,6 +1,13 @@
|
||||
{ config, ... }:
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.localization;
|
||||
in
|
||||
{
|
||||
time.timeZone = config.host.timezone;
|
||||
i18n.defaultLocale = config.host.locale;
|
||||
options.localization.enable = lib.mkEnableOption "localization";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
time.timeZone = config.host.timezone;
|
||||
i18n.defaultLocale = config.host.locale;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user