From 48447ae5a5222bc05a3b3c66325167d9b0b8d028 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 10 Apr 2024 23:15:03 +0530 Subject: [PATCH] add locale --- hosts/default/configuration.nix | 13 ------------- modules/nixos/default.nix | 1 + modules/nixos/locale/default.nix | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 modules/nixos/locale/default.nix diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index d47bb36..a290131 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -32,19 +32,6 @@ time.timeZone = "Asia/Kolkata"; # Select internationalisation properties. - i18n.defaultLocale = "en_IN"; - - i18n.extraLocaleSettings = { - LC_ADDRESS = "en_IN"; - LC_IDENTIFICATION = "en_IN"; - LC_MEASUREMENT = "en_IN"; - LC_MONETARY = "en_IN"; - LC_NAME = "en_IN"; - LC_NUMERIC = "en_IN"; - LC_PAPER = "en_IN"; - LC_TELEPHONE = "en_IN"; - LC_TIME = "en_IN"; - }; fonts.packages = with pkgs; [ source-han-serif diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index c5a8e1a..2270399 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -5,6 +5,7 @@ ./filesystem ./hardware ./kernel + ./locale ./networking ]; } diff --git a/modules/nixos/locale/default.nix b/modules/nixos/locale/default.nix new file mode 100644 index 0000000..ce8e745 --- /dev/null +++ b/modules/nixos/locale/default.nix @@ -0,0 +1,17 @@ +_: { + i18n = { + defaultLocale = "en_IN"; + + extraLocaleSettings = { + LC_ADDRESS = "en_IN"; + LC_IDENTIFICATION = "en_IN"; + LC_MEASUREMENT = "en_IN"; + LC_MONETARY = "en_IN"; + LC_NAME = "en_IN"; + LC_NUMERIC = "en_IN"; + LC_PAPER = "en_IN"; + LC_TELEPHONE = "en_IN"; + LC_TIME = "en_IN"; + }; + }; +}