nix: refactored locale to a module

This commit is contained in:
Primrose 2024-07-18 23:16:04 +02:00
parent a8ddbead87
commit 13ca8b5a2f
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 15 additions and 17 deletions

View file

@ -1,6 +1,5 @@
{ pkgs, ... }:
{
time.timeZone = "Europe/Paris";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
@ -14,11 +13,6 @@
LC_TELEPHONE = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
};
supportedLocales = [
"en_US.UTF-8/UTF-8"
"fr_FR.UTF-8/UTF-8"
"zh_TW.UTF-8/UTF-8"
];
};
i18n.inputMethod.enabled = "fcitx5";