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 = ""; +}