From 4d2850b58fc22d0d7ae4394365509ae3fae2f65d Mon Sep 17 00:00:00 2001 From: caandt Date: Mon, 20 Jan 2025 11:41:01 -0600 Subject: [PATCH] add shift jis locale --- system/locale.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/locale.nix b/system/locale.nix index 6c27e32..7b85ed5 100644 --- a/system/locale.nix +++ b/system/locale.nix @@ -5,9 +5,18 @@ ... }: { i18n.defaultLocale = "en_US.UTF-8"; + i18n.glibcLocales = + (pkgs.glibcLocales.overrideAttrs (finalAttrs: previousAttrs: { + preBuild = builtins.replaceStrings ["false"] ["# false"] previousAttrs.preBuild; + })) + .override { + locales = config.i18n.supportedLocales; + allLocales = false; + }; i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "ja_JP.UTF-8/UTF-8" + "ja_JP.SJIS/SHIFT_JIS" ]; i18n.inputMethod = lib.mkIf config.u.has.graphical { enable = true;