nixos/settings/locale.nix
2026-03-30 12:47:38 +01:00

37 lines
816 B
Nix

# locale.nix
{ config, pkgs, lib, ... }:
{
# Set your time zone.
#time.timeZone = "Europe/London";
services.automatic-timezoned.enable = true;
services.geoclue2 = {
enable = true;
enableDemoAgent = true;
geoProviderUrl = "https://location.services.mozilla.com/v1/geolocate?key=geoclue";
};
# 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";
}