2024-03-16 11:05:04 +01:00
|
|
|
{ config, lib, ... }: let
|
|
|
|
cfg = config.grimmShared;
|
|
|
|
in {
|
2024-03-16 12:03:33 +01:00
|
|
|
config = with cfg; lib.mkIf (enable && locale) {
|
2024-03-16 11:05:04 +01:00
|
|
|
time.timeZone = "Europe/Berlin";
|
2024-03-16 10:07:36 +01:00
|
|
|
|
2024-03-16 11:05:04 +01:00
|
|
|
# Select internationalisation properties.
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
};
|
2024-03-16 10:07:36 +01:00
|
|
|
|
2024-03-16 11:05:04 +01:00
|
|
|
console.keyMap = "de";
|
2024-03-16 10:07:36 +01:00
|
|
|
|
2024-03-16 11:05:04 +01:00
|
|
|
services.xserver.xkb = {
|
|
|
|
layout = "de";
|
|
|
|
variant = "";
|
|
|
|
};
|
2024-03-16 10:07:36 +01:00
|
|
|
};
|
|
|
|
}
|