🇳🇴/🇬🇧 Locale switcher

- Added no to list of keyboard locales.
- Added no and gb to list of supported locales.
- Added a waybar language switcher, that can be clicked to toggle
- Toggle languages using ALT+SHIFT
- Enable numlock at boot
This commit is contained in:
2024-12-30 20:21:06 +01:00
parent 4a5cd5dd73
commit b28a7d7fbb
5 changed files with 67 additions and 49 deletions

36
locale.nix Normal file
View File

@ -0,0 +1,36 @@
{ ... }:
# TODO move locale config for hyprland here
{
# Configure console keymap
console.keyMap = "uk";
# Select internationalisation properties.
i18n = {
defaultLocale = "en_GB.UTF-8";
supportedLocales = [
"en_GB.UTF-8/UTF-8"
"nb_NO.UTF-8/UTF-8"
];
extraLocaleSettings = {
LC_ADDRESS = "nb_NO.UTF-8";
LC_IDENTIFICATION = "nb_NO.UTF-8";
LC_MEASUREMENT = "nb_NO.UTF-8";
LC_MONETARY = "nb_NO.UTF-8";
LC_NAME = "nb_NO.UTF-8";
LC_NUMERIC = "nb_NO.UTF-8";
LC_PAPER = "nb_NO.UTF-8";
LC_TELEPHONE = "nb_NO.UTF-8";
LC_TIME = "nb_NO.UTF-8";
};
};
# Configure keymaps
services.xserver.xkb = {
layout = "gb,no";
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
};
# Set your time zone.
time.timeZone = "Europe/Oslo";
}