27 lines
694 B
Nix
27 lines
694 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
coreEnabled = config.mySystem.system.core.enable or false;
|
|
in
|
|
{
|
|
options.mySystem.system.locale.enable =
|
|
lib.mkEnableOption "Locale settings";
|
|
|
|
config = lib.mkIf (coreEnabled || config.mySystem.system.locale.enable) {
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
i18n.defaultLocale = "nl_NL.UTF-8";
|
|
i18n.extraLocaleSettings = {
|
|
LC_ADDRESS = "nl_NL.UTF-8";
|
|
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
|
LC_MEASUREMENT = "nl_NL.UTF-8";
|
|
LC_MONETARY = "nl_NL.UTF-8";
|
|
LC_NAME = "nl_NL.UTF-8";
|
|
LC_NUMERIC = "nl_NL.UTF-8";
|
|
LC_PAPER = "nl_NL.UTF-8";
|
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
|
LC_TIME = "nl_NL.UTF-8";
|
|
};
|
|
};
|
|
}
|