nixos/i18n: lib.filterAttrs -> lib.removeAttrs

This commit is contained in:
h7x4
2025-10-26 15:21:21 +09:00
parent d8cc1036c6
commit a01ac0648c
+1 -1
View File
@@ -12,7 +12,7 @@ let
]
++ lib.pipe config.i18n.extraLocaleSettings [
# See description of extraLocaleSettings for why is this ignored here.
(lib.filterAttrs (n: v: n != "LANGUAGE"))
(x: lib.removeAttrs x [ "LANGUAGE" ])
(lib.mapAttrs (n: v: (sanitizeUTF8Capitalization v)))
(lib.mapAttrsToList (LCRole: lang: lang + "/" + (config.i18n.localeCharsets.${LCRole} or "UTF-8")))
]