2025-12-03 15:51:20 +00:00
|
|
|
# locale.nix
|
2025-12-03 15:48:57 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2026-04-29 14:00:41 +01:00
|
|
|
# Static timezone — automatic-timezoned needs polkit rules to call timedate1
|
|
|
|
|
# and was failing on every host. Override on the laptop if it ever moves.
|
|
|
|
|
time.timeZone = "Europe/London";
|
2026-03-30 12:47:38 +01:00
|
|
|
|
2025-12-03 15:48:57 +00:00
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "en_GB.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "en_GB.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "en_GB.UTF-8";
|
|
|
|
|
LC_MONETARY = "en_GB.UTF-8";
|
|
|
|
|
LC_NAME = "en_GB.UTF-8";
|
|
|
|
|
LC_NUMERIC = "en_GB.UTF-8";
|
|
|
|
|
LC_PAPER = "en_GB.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "en_GB.UTF-8";
|
|
|
|
|
LC_TIME = "en_GB.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
|
|
|
|
services.xserver.xkb = {
|
|
|
|
|
layout = "gb";
|
|
|
|
|
variant = "";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Configure console keymap
|
|
|
|
|
console.keyMap = "uk";
|
|
|
|
|
|
|
|
|
|
}
|