nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

commit 01eb1437638dd09a0f5b19713e3984ae751d975d
parent 0584a09818ff0a746eaea5adac4536b048086f03
Author: breadcat <breadcat@users.noreply.github.com>
Date:   Mon, 28 Jul 2025 14:28:11 +0100

Use a few variables for easier edits

Diffstat:
Mcommon/locale.nix | 28+++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/common/locale.nix b/common/locale.nix @@ -1,16 +1,22 @@ +{ config, pkgs, ... }: + +let + timezone = "Europe/London"; + locale = "en_GB.UTF-8"; +in { - time.timeZone = "Europe/London"; - i18n.defaultLocale = "en_GB.UTF-8"; + time.timeZone = timezone; + i18n.defaultLocale = locale; 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"; + LC_ADDRESS = locale; + LC_IDENTIFICATION = locale; + LC_MEASUREMENT = locale; + LC_MONETARY = locale; + LC_NAME = locale; + LC_NUMERIC = locale; + LC_PAPER = locale; + LC_TELEPHONE = locale; + LC_TIME = locale; }; services.xserver.xkb.layout = "gb"; console.keyMap = "uk";