1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
{ config, lib, ... }: let cfg = config.getchoo.base.defaultLocale; inherit (lib) mkEnableOption mkIf; in { options.getchoo.base.defaultLocale.enable = mkEnableOption "enable default locale"; config = mkIf cfg.enable { i18n = { supportedLocales = [ "en_US.UTF-8/UTF-8" ]; defaultLocale = "en_US.UTF-8"; }; time.timeZone = "America/New_York"; }; }