From b87f78c680d0f1b49f9ad27a76888fd678da19f4 Mon Sep 17 00:00:00 2001 From: smayzy Date: Fri, 27 Jun 2025 21:28:33 +0000 Subject: [PATCH] put locales in a module --- configuration.nix | 13 +------------ modules/nix/locales.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 modules/nix/locales.nix diff --git a/configuration.nix b/configuration.nix index 4595ef4..a053795 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,6 +7,7 @@ inputs.home-manager.nixosModules.home-manager ./modules/nix/pipewire.nix + ./modules/nix/locales.nix ]; home-manager = { @@ -37,18 +38,6 @@ networking.hostName = "nixos"; networking.networkmanager.enable = true; - time.timeZone = "Europe/Paris"; - i18n.defaultLocale = "en_US.UTF-8"; - i18n.extraLocaleSettings = { - LC_ADDRESS = "fr_FR.UTF-8"; - LC_IDENTIFICATION = "fr_FR.UTF-8"; - LC_MEASUREMENT = "fr_FR.UTF-8"; - LC_MONETARY = "fr_FR.UTF-8"; - LC_NAME = "fr_FR.UTF-8"; - LC_NUMERIC = "fr_FR.UTF-8"; - LC_PAPER = "fr_FR.UTF-8"; - LC_TELEPHONE = "fr_FR.UTF-8"; - }; users.users.smayzy = { isNormalUser = true; diff --git a/modules/nix/locales.nix b/modules/nix/locales.nix new file mode 100644 index 0000000..7eea2d4 --- /dev/null +++ b/modules/nix/locales.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: +{ + i18n.defaultLocale = "en_US.UTF-8"; + i18n.extraLocaleSettings = { + LC_ADDRESS = "fr_FR.UTF-8"; + LC_IDENTIFICATION = "fr_FR.UTF-8"; + LC_MEASUREMENT = "fr_FR.UTF-8"; + LC_MONETARY = "fr_FR.UTF-8"; + LC_NAME = "fr_FR.UTF-8"; + LC_NUMERIC = "fr_FR.UTF-8"; + LC_PAPER = "fr_FR.UTF-8"; + LC_TELEPHONE = "fr_FR.UTF-8"; + }; +}