matrix: reword gui.enable description, use literalMD for package defaultText (argus #635 nits)
This commit is contained in:
parent
effe00889f
commit
2bea5d80b5
1 changed files with 13 additions and 11 deletions
|
|
@ -162,20 +162,22 @@ in
|
|||
default = cfg.enable;
|
||||
defaultText = lib.literalExpression "config.services.hyperhive.matrix.enable";
|
||||
description = ''
|
||||
Mount a matrix web client (default `pkgs.fluffychat-web`) as
|
||||
a static sibling of the dashboard at `/matrix/`, served by
|
||||
hive-c0re's own axum router via the `HIVE_MATRIX_GUI_DIR`
|
||||
env var (#607). Defaults to whatever
|
||||
Serve a matrix web client (default `pkgs.fluffychat-web`) as
|
||||
a static dist at `/matrix/` via the hive-gateway nginx
|
||||
(#607 / #634). Defaults to whatever
|
||||
`services.hyperhive.matrix.enable` is — turning on the
|
||||
homeserver gives you the web client by default; set to
|
||||
`false` explicitly to opt out of the GUI while keeping
|
||||
the homeserver running for agents.
|
||||
the homeserver running for agents. Requires
|
||||
`services.hyperhive.gateway.enable` (default on); when
|
||||
gateway is off no one hosts the GUI and the
|
||||
`M4TR1X →` dashboard tab is hidden.
|
||||
|
||||
Same-origin via hive-c0re is the simplest single-host
|
||||
shape; the post-#15 nginx-front re-root (`https://matrix.''${services.hyperhive.domain}`)
|
||||
is tracked separately in #609. fluffychat-web supports
|
||||
per-login server pick — point it at the in-host tuwunel URL
|
||||
(`http://localhost:8008` by default) the first time.
|
||||
fluffychat-web supports per-login server pick — point it at
|
||||
the in-host tuwunel URL (`http://localhost:8008` by
|
||||
default) the first time. The post-#15 nginx-front re-root
|
||||
(`https://matrix.''${services.hyperhive.domain}`) is tracked
|
||||
separately in #609.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
@ -198,7 +200,7 @@ in
|
|||
"/matrix/"
|
||||
];
|
||||
});
|
||||
defaultText = lib.literalExpression "pkgs.fluffychat-web with --base-href /matrix/";
|
||||
defaultText = lib.literalMD "`pkgs.fluffychat-web` rebuilt with `--base-href /matrix/` via `targetFlags`.";
|
||||
description = ''
|
||||
Static web client dist to serve at `/matrix/`. Defaults to
|
||||
`pkgs.fluffychat-web` rebuilt with `--base-href "/matrix/"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue