From 34cc2ca164d32f1c8658d120df6184d48a1b0516 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 20 Jul 2024 17:59:37 +0200 Subject: [PATCH] tadpole: Add `localisation` module --- hosts/tadpole/configuration.nix | 5 +---- .../tadpole/modules/localisation/default.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 hosts/tadpole/modules/localisation/default.nix diff --git a/hosts/tadpole/configuration.nix b/hosts/tadpole/configuration.nix index 1b17ee8..a368058 100644 --- a/hosts/tadpole/configuration.nix +++ b/hosts/tadpole/configuration.nix @@ -21,9 +21,7 @@ }; }; - networking.hostName = "tadpole"; # Define your hostname. - - time.timeZone = "Europe/Stockholm"; + networking.hostName = "tadpole"; users.users.alex = { isNormalUser = true; @@ -61,4 +59,3 @@ system.stateVersion = "24.05"; # Did you read the comment? } - diff --git a/hosts/tadpole/modules/localisation/default.nix b/hosts/tadpole/modules/localisation/default.nix new file mode 100644 index 0000000..bf6d23c --- /dev/null +++ b/hosts/tadpole/modules/localisation/default.nix @@ -0,0 +1,19 @@ +{ + time.timeZone = "Europe/Stockholm"; + + i18n = { + defaultLocale = "en_US.UTF-8"; + + extraLocaleSettings = { + LC_ADDRESS = "sv_SE.UTF-8"; + LC_IDENTIFICATION = "sv_SE.UTF-8"; + LC_MEASUREMENT = "sv_SE.UTF-8"; + LC_MONETARY = "sv_SE.UTF-8"; + LC_NAME = "sv_SE.UTF-8"; + LC_NUMERIC = "sv_SE.UTF-8"; + LC_PAPER = "sv_SE.UTF-8"; + LC_TELEPHONE = "sv_SE.UTF-8"; + LC_TIME = "en_US.UTF-8"; + }; + }; +}