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;
|
default = cfg.enable;
|
||||||
defaultText = lib.literalExpression "config.services.hyperhive.matrix.enable";
|
defaultText = lib.literalExpression "config.services.hyperhive.matrix.enable";
|
||||||
description = ''
|
description = ''
|
||||||
Mount a matrix web client (default `pkgs.fluffychat-web`) as
|
Serve a matrix web client (default `pkgs.fluffychat-web`) as
|
||||||
a static sibling of the dashboard at `/matrix/`, served by
|
a static dist at `/matrix/` via the hive-gateway nginx
|
||||||
hive-c0re's own axum router via the `HIVE_MATRIX_GUI_DIR`
|
(#607 / #634). Defaults to whatever
|
||||||
env var (#607). Defaults to whatever
|
|
||||||
`services.hyperhive.matrix.enable` is — turning on the
|
`services.hyperhive.matrix.enable` is — turning on the
|
||||||
homeserver gives you the web client by default; set to
|
homeserver gives you the web client by default; set to
|
||||||
`false` explicitly to opt out of the GUI while keeping
|
`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
|
fluffychat-web supports per-login server pick — point it at
|
||||||
shape; the post-#15 nginx-front re-root (`https://matrix.''${services.hyperhive.domain}`)
|
the in-host tuwunel URL (`http://localhost:8008` by
|
||||||
is tracked separately in #609. fluffychat-web supports
|
default) the first time. The post-#15 nginx-front re-root
|
||||||
per-login server pick — point it at the in-host tuwunel URL
|
(`https://matrix.''${services.hyperhive.domain}`) is tracked
|
||||||
(`http://localhost:8008` by default) the first time.
|
separately in #609.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -198,7 +200,7 @@ in
|
||||||
"/matrix/"
|
"/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 = ''
|
description = ''
|
||||||
Static web client dist to serve at `/matrix/`. Defaults to
|
Static web client dist to serve at `/matrix/`. Defaults to
|
||||||
`pkgs.fluffychat-web` rebuilt with `--base-href "/matrix/"`
|
`pkgs.fluffychat-web` rebuilt with `--base-href "/matrix/"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue