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