From bb957032ffc5352229edbbdcdb56b9dba4408f37 Mon Sep 17 00:00:00 2001 From: Jakub Stachurski Date: Fri, 8 May 2026 23:23:19 +0200 Subject: Tacitus hosts and locale --- modules/locale.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/locale.nix (limited to 'modules/locale.nix') diff --git a/modules/locale.nix b/modules/locale.nix new file mode 100644 index 0000000..097ebc7 --- /dev/null +++ b/modules/locale.nix @@ -0,0 +1,24 @@ +{ ... }: +let + language_locale = "en_GB.UTF-8"; + actual_locale = "nl_NL.UTF-8"; + extraLocales = map (l: "${l}/UTF-8") ([ actual_locale ] ++ [ "pl_PL.UTF-8" ]); +in +{ + i18n = { + defaultLocale = language_locale; + extraLocales = extraLocales; + extraLocaleSettings = { + LC_CTYPE = language_locale; + LC_ADDRESS = actual_locale; + LC_MESSAGES = language_locale; + LC_MONETARY = actual_locale; + LC_NAME = actual_locale; + LC_NUMERIC = actual_locale; + LC_PAPER = actual_locale; + LC_TELEPHONE = actual_locale; + LC_TIME = actual_locale; + LC_COLLATE = actual_locale; + }; + }; +} -- cgit v1.3.1