🇳🇴/🇬🇧 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

View File

@ -17,33 +17,13 @@
./networking.nix
./development.nix
./security.nix
./locale.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Set your time zone.
time.timeZone = "Europe/Oslo";
# Select internationalisation properties.
i18n.defaultLocale = "en_GB.UTF-8";
i18n.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 console keymap
console.keyMap = "uk";
# Define a user account. Don't forget to set a password with passwd.
users.users.martin = {
isNormalUser = true;
@ -124,6 +104,7 @@
services = {
displayManager.sddm = {
enable = true;
autoNumlock = true; # Enable numlock at login
wayland.enable = true;
};
@ -135,11 +116,6 @@
enable = true;
# Load Nvidia driver for Xorg and Wayland
videoDrivers = [ "nvidia" ];
# Configure keymap in X11
xkb = {
layout = "gb";
variant = "";
};
};
};
@ -156,26 +132,19 @@
};
};
qt = {
enable = true;
#platformTheme = "gnome";
#style = "adwaita-dark";
};
qt.enable = true;
# Enable OpenGL
hardware.graphics = {
enable = true;
};
hardware.nvidia = {
# Required
modesetting.enable = true;
# Use closed-source drivers
open = false;
# Enable the Nvidia settings menu
nvidiaSettings = true;
hardware = {
graphics.enable = true;
nvidia = {
# Required
modesetting.enable = true;
# Use closed-source drivers
open = false;
# Enable the Nvidia settings menu
nvidiaSettings = true;
};
};
xdg.mime.defaultApplications = {