From 0ea8ddb549614230ef3b21a1d43a7c79096a1c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 14 Jul 2025 08:11:46 +0200 Subject: [PATCH 1/2] vanadium: update locale --- nix/configurations/vanadium/nixos/locale.nix | 53 ++++++++++++-------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/nix/configurations/vanadium/nixos/locale.nix b/nix/configurations/vanadium/nixos/locale.nix index e87a37ce..5258dbb3 100644 --- a/nix/configurations/vanadium/nixos/locale.nix +++ b/nix/configurations/vanadium/nixos/locale.nix @@ -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" ''; } From 3c2fc8fb8d4b55984ba41548cc62311f4998ac87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Mon, 11 Aug 2025 22:45:22 +0200 Subject: [PATCH 2/2] xmobar: change weather location --- nix/configurations/vanadium/home/xmobar/xmobar.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/configurations/vanadium/home/xmobar/xmobar.hs b/nix/configurations/vanadium/home/xmobar/xmobar.hs index 8e5a1890..8a2ec23f 100644 --- a/nix/configurations/vanadium/home/xmobar/xmobar.hs +++ b/nix/configurations/vanadium/home/xmobar/xmobar.hs @@ -42,7 +42,7 @@ config = , Run XMonadLog , Run $ Weather - "LFRN" + "RCSS" [ "-t", ": °C" , "-L","10", "-H", "25" , "--normal", "white" @@ -63,7 +63,7 @@ config = , "[TST: %tstClock%]" ] <> " " - , " %LFRN% " + , " %RCSS% " , " %battery%, %powerprofilesctl%) " , " %hereClock% (j%tomorrow%) " ]