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