From a484bed0e592f62e34acf5f082ed45686782a414 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 4 Mar 2023 00:11:46 +0100 Subject: [PATCH] move locale to pofile still in base however... --- base.nix | 17 +---------------- profiles/locale-no.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 profiles/locale-no.nix diff --git a/base.nix b/base.nix index 1e6859e..fc1a35c 100644 --- a/base.nix +++ b/base.nix @@ -2,6 +2,7 @@ { imports = [ ./cachix.nix + ./profiles/locale-no.nix (if builtins.pathExists ./hardware-configuration.nix then ./hardware-configuration.nix # results of ‘nixos-generate-config else {} @@ -60,20 +61,4 @@ services.fail2ban.enable = config.services.openssh.enable; networking.firewall.enable = true; # default - # Time zone and internationalisation properties. - time.timeZone = "Europe/Oslo"; - 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"; - services.xserver.layout = "no"; - services.xserver.xkbVariant = ""; - } diff --git a/profiles/locale-no.nix b/profiles/locale-no.nix new file mode 100644 index 0000000..2af2cc0 --- /dev/null +++ b/profiles/locale-no.nix @@ -0,0 +1,17 @@ +{ + # Time zone and internationalisation properties. + time.timeZone = "Europe/Oslo"; + 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"; + services.xserver.layout = "no"; + services.xserver.xkbVariant = ""; +}