Compare commits
2 commits
692620ab4b
...
d1a3353419
Author | SHA1 | Date | |
---|---|---|---|
|
d1a3353419 | ||
61224dbc26 |
3 changed files with 39 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
./gerd/services/nextcloud.nix
|
./gerd/services/nextcloud.nix
|
||||||
./gerd/services/stalwart
|
./gerd/services/stalwart
|
||||||
|
|
||||||
|
./gerd/services/element.nix
|
||||||
./gerd/services/matrix-synapse.nix
|
./gerd/services/matrix-synapse.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
36
machines/gerd/services/element.nix
Normal file
36
machines/gerd/services/element.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
svc_domain = "chat.${config.mine.shared.settings.domain}";
|
||||||
|
|
||||||
|
# configure element web client
|
||||||
|
pkg_element = pkgs.element-web.override {
|
||||||
|
conf = {
|
||||||
|
default_theme = "dark";
|
||||||
|
features.feature_latex_maths = true;
|
||||||
|
disable_guests = true;
|
||||||
|
|
||||||
|
default_server_name = config.mine.shared.settings.domain;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
services.nginx.virtualHosts."${svc_domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".root = pkg_element;
|
||||||
|
};
|
||||||
|
|
||||||
|
mine.shared.meta.element = {
|
||||||
|
name = "Element";
|
||||||
|
description = "We host our own Element instance, get on it and start chatting!";
|
||||||
|
url = "https://${svc_domain}";
|
||||||
|
|
||||||
|
package = let
|
||||||
|
pkg = pkg_element;
|
||||||
|
in {
|
||||||
|
name = pkg.pname;
|
||||||
|
version = pkg.version;
|
||||||
|
meta = pkg.meta;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -182,6 +182,8 @@ in {
|
||||||
matrix-synapse-config-authelia-secret.owner = matrix_synapse_user;
|
matrix-synapse-config-authelia-secret.owner = matrix_synapse_user;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mine.shared.settings.matrix-synapse.domain = svc_domain;
|
||||||
|
|
||||||
mine.shared.meta.matrix-synapse = {
|
mine.shared.meta.matrix-synapse = {
|
||||||
name = "Matrix Synapse";
|
name = "Matrix Synapse";
|
||||||
description = "We host our own Matrix homeserver using Synapse! Login using your favourite which supports OpenID.";
|
description = "We host our own Matrix homeserver using Synapse! Login using your favourite which supports OpenID.";
|
||||||
|
|
Loading…
Reference in a new issue