config/profiles/locale-no.nix

26 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-07 18:26:44 +02:00
{ lib, ... }: lib.mkMerge [
{
2023-03-12 05:14:28 +01:00
# Time zone and internationalisation properties.
2024-09-13 18:12:23 +02:00
time.timeZone = lib.mkDefault "Europe/Oslo";
2023-03-12 05:14:28 +01:00
i18n.defaultLocale = "en_US.utf8";
i18n.extraLocaleSettings.LC_ADDRESS = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_IDENTIFICATION = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_MEASUREMENT = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_MONETARY = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_NAME = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_NUMERIC = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_PAPER = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_TELEPHONE = "nb_NO.utf8";
i18n.extraLocaleSettings.LC_TIME = "nb_NO.utf8";
console.keyMap = "no";
2024-06-07 18:26:44 +02:00
}
(lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05") {
services.xserver.xkb.layout = "no";
services.xserver.xkb.variant = "";
})
(lib.mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "24.05") {
2023-03-12 05:14:28 +01:00
services.xserver.layout = "no";
services.xserver.xkbVariant = "";
2024-06-07 18:26:44 +02:00
})
]