summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-06-11 19:56:12 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-06-11 23:29:29 +0200
commit515b36c0939b2fd96072eef7e58722900218897b (patch)
tree3a565a8ce38589bcbd277a3f477e1faa1d21822a /nixos/modules/config
parentb03082ac7986809ae792dbf1c592ecd45c513ec8 (diff)
downloadnixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar.gz
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar.bz2
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar.lz
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar.xz
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.tar.zst
nixpkgs-515b36c0939b2fd96072eef7e58722900218897b.zip
nixos/i18n: don't build all supportedLocales by default
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/i18n.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/config/i18n.nix b/nixos/modules/config/i18n.nix
index 5b8d5b21449..53dd325457e 100644
--- a/nixos/modules/config/i18n.nix
+++ b/nixos/modules/config/i18n.nix
@@ -53,7 +53,8 @@ with lib;
 
       supportedLocales = mkOption {
         type = types.listOf types.str;
-        default = ["all"];
+        default = [ (config.i18n.defaultLocale + "/UTF-8") ];
+        defaultText = literalExpression "[ (config.i18n.defaultLocale + \"/UTF-8\") ]";
         example = ["en_US.UTF-8/UTF-8" "nl_NL.UTF-8/UTF-8" "nl_NL/ISO-8859-1"];
         description = ''
           List of locales that the system should support.  The value