Unverified Commit 05b84a2b authored by pennae's avatar pennae Committed by GitHub
Browse files

Merge pull request #240754 from SuperSandro2000/ssh-fix-manpage

nixos/{sshd,thelounge,ttyd,proxmox-image}: fix example rendering
parents 4586970e 2048a8ca
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -279,10 +279,12 @@ in
      settings = mkOption {
        description = lib.mdDoc "Configuration for `sshd_config(5)`.";
        default = { };
        example = literalExpression ''{
        example = literalExpression ''
          {
            UseDns = true;
            PasswordAuthentication = false;
        }'';
          }
        '';
        type = types.submodule ({name, ...}: {
          freeformType = settingsFormat.type;
          options = {
+10 −8
Original line number Diff line number Diff line
@@ -48,14 +48,16 @@ in
    extraConfig = mkOption {
      default = { };
      type = types.attrs;
      example = literalExpression ''{
      example = literalExpression ''
        {
          reverseProxy = true;
          defaults = {
            name = "Your Network";
            host = "localhost";
            port = 6697;
          };
      }'';
        }
      '';
      description = lib.mdDoc ''
        The Lounge's {file}`config.js` contents as attribute set (will be
        converted to JSON to generate the configuration file).
+6 −5
Original line number Diff line number Diff line
@@ -78,11 +78,12 @@ in
      clientOptions = mkOption {
        type = types.attrsOf types.str;
        default = {};
        example = literalExpression ''{
        example = literalExpression ''
          {
            fontSize = "16";
            fontFamily = "Fira Code";

        }'';
          }
        '';
        description = lib.mdDoc ''
          Attribute set of client options for xtermjs.
          <https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/>
+6 −4
Original line number Diff line number Diff line
@@ -98,10 +98,12 @@ with lib;
    qemuExtraConf = mkOption {
      type = with types; attrsOf (oneOf [ str int ]);
      default = {};
      example = literalExpression ''{
      example = literalExpression ''
        {
          cpu = "host";
          onboot = 1;
      }'';
        }
      '';
      description = lib.mdDoc ''
        Additional options appended to qemu-server.conf
      '';