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/default.nix | 1 + modules/locale.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/locale.nix (limited to 'modules') diff --git a/modules/default.nix b/modules/default.nix index 406d37c..26d6ec9 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -13,6 +13,7 @@ ./remote-builder.nix ./nh.nix ./motd.nix + ./locale.nix ]; nixpkgs.overlays = [ 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