mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium: update locale
This commit is contained in:
parent
2a321203cb
commit
0ea8ddb549
1 changed files with 33 additions and 20 deletions
|
|
@ -1,34 +1,47 @@
|
|||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
{lib, ...}: {
|
||||
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
# `timedatectl list-timezones`
|
||||
time.timeZone = "Asia/Taipei";
|
||||
|
||||
i18n = {
|
||||
defaultLocale = "en_US.UTF-8";
|
||||
supportedLocales = [
|
||||
extraLocales = [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
"fr_FR.UTF-8/UTF-8"
|
||||
"zh_TW.UTF-8/UTF-8"
|
||||
];
|
||||
extraLocaleSettings = {
|
||||
# LC_CTYPE = "en_US.UTF-8";
|
||||
# LC_NUMERIC = "en_US.UTF-8";
|
||||
LC_TIME = "fr_FR.UTF-8";
|
||||
# LC_COLLATE = "en_US.UTF-8";
|
||||
LC_MONETARY = "fr_FR.UTF-8";
|
||||
# LC_MESSAGES = "en_US.UTF-8";
|
||||
# LC_PAPER = "en_US.UTF-8";
|
||||
# LC_NAME = "en_US.UTF-8";
|
||||
LC_ADDRESS = "fr_FR.UTF-8";
|
||||
# LC_TELEPHONE = "en_US.UTF-8";
|
||||
# LC_MEASUREMENT = "en_US.UTF-8";
|
||||
# LC_IDENTIFICATION = "en_US.UTF-8";
|
||||
# LC_ALL=
|
||||
};
|
||||
extraLocaleSettings =
|
||||
# A list of env variables you might want to set
|
||||
#
|
||||
# "LC_CTYPE"
|
||||
# "LC_NUMERIC"
|
||||
# "LC_TIME"
|
||||
# "LC_COLLATE"
|
||||
# "LC_MONETARY"
|
||||
# "LC_MESSAGES"
|
||||
# "LC_PAPER"
|
||||
# "LC_NAME"
|
||||
# "LC_ADDRESS"
|
||||
# "LC_TELEPHONE"
|
||||
# "LC_MEASUREMENT"
|
||||
# "LC_IDENTIFICATION"
|
||||
let
|
||||
genLocale = locale: lib.flip lib.genAttrs (_: locale);
|
||||
in
|
||||
genLocale "zh_TW.UTF-8" [
|
||||
"LC_TIME"
|
||||
"LC_MONETARY"
|
||||
"LC_ADDRESS"
|
||||
];
|
||||
};
|
||||
|
||||
# Wireless Regulatory Domain
|
||||
# Wireless Regulatory Domain, uses ISO / IEC 3166 country code
|
||||
#
|
||||
# links:
|
||||
# https://community.frame.work/t/framework-nixos-linux-users-self-help/31426/77
|
||||
# https://wireless.docs.kernel.org/en/latest/en/developers/regulatory.html#the-ieee80211-regdom-module-parameter
|
||||
hardware.wirelessRegulatoryDatabase = true;
|
||||
boot.extraModprobeConfig = ''
|
||||
options cfg80211 ieee80211_regdom="FR"
|
||||
options cfg80211 ieee80211_regdom="TW"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue