Commit 401ec59a authored by musjj's avatar musjj
Browse files

nixos/i18n: hide supportedLocales from the manual

parent 073e4bd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# Minimal {#sec-profile-minimal}

This profile defines a small NixOS configuration. It does not contain any
graphical stuff. It's a very short file that sets [](#opt-i18n.supportedLocales)
graphical stuff. It's a very short file that sets the supported locales
to only support the user-selected locale, and
[disables packages' documentation](#opt-documentation.enable).
+1 −15
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@

      supportedLocales = lib.mkOption {
        type = lib.types.listOf lib.types.str;
        visible = false;
        default = lib.unique (
          builtins.map
            (l: (lib.replaceStrings [ "utf8" "utf-8" "UTF8" ] [ "UTF-8" "UTF-8" "UTF-8" ] l) + "/UTF-8")
@@ -82,21 +83,6 @@
              ++ (lib.attrValues (lib.filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings))
            )
        );
        defaultText = lib.literalExpression ''
          lib.unique (
            builtins.map
              (l: (lib.replaceStrings [ "utf8" "utf-8" "UTF8" ] [ "UTF-8" "UTF-8" "UTF-8" ] l) + "/UTF-8")
              (
                [
                  "C.UTF-8"
                  "en_US.UTF-8"
                  config.i18n.defaultLocale
                ]
                ++ config.i18n.extraLocales
                ++ (lib.attrValues (lib.filterAttrs (n: v: n != "LANGUAGE") config.i18n.extraLocaleSettings))
              )
          )
        '';
        example = [
          "en_US.UTF-8/UTF-8"
          "nl_NL.UTF-8/UTF-8"