Loading nixos/doc/manual/configuration/profiles/minimal.section.md +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). nixos/modules/config/i18n.nix +1 −15 Original line number Diff line number Diff line Loading @@ -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") Loading @@ -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" Loading Loading
nixos/doc/manual/configuration/profiles/minimal.section.md +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).
nixos/modules/config/i18n.nix +1 −15 Original line number Diff line number Diff line Loading @@ -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") Loading @@ -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" Loading