summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2023-06-23 02:38:58 +0200
committerstuebinm2023-06-23 02:38:58 +0200
commitd79cda5054c4155553d17df1443989ef41a08cd0 (patch)
tree4509d2b1ebe8bf0ec742a1db31617606b68d6488
parent5d60a87297e9b6b79fc06e80910083fd36b9c151 (diff)
host my own element, for $reasons
Diffstat (limited to '')
-rw-r--r--flora/configuration.nix1
-rw-r--r--flora/services/element.nix30
2 files changed, 31 insertions, 0 deletions
diff --git a/flora/configuration.nix b/flora/configuration.nix
index 82c08f5..51b9674 100644
--- a/flora/configuration.nix
+++ b/flora/configuration.nix
@@ -12,6 +12,7 @@
# ./services/znc.nix
./services/mail.nix
./services/trainspotter.nix
+ ./services/element.nix
];
# Use the GRUB 2 boot loader.
diff --git a/flora/services/element.nix b/flora/services/element.nix
new file mode 100644
index 0000000..d0621fa
--- /dev/null
+++ b/flora/services/element.nix
@@ -0,0 +1,30 @@
+{ config, lib, pkgs, ... }:
+let
+ clientConfig."m.homeserver".base_url = "https://raccoon.college";
+in
+{
+ services.nginx.virtualHosts."chat.stuebinm.eu" = {
+ enableACME = true;
+ forceSSL = true;
+ serverAliases = [
+ "chat.stuebinm.eu"
+ ];
+
+ root = pkgs.element-web.override {
+ conf = {
+ default_server_config = null;
+ default_server_name = "raccoon.college";
+ show_labs_settings = true;
+ disable_guests = true;
+ brand = "meow";
+ integrations_widgets_urls = [];
+ integrations_ui_url = null;
+ integrations_rest_url = null;
+ default_theme = "dark";
+ room_directory.servers = [ "raccoon.college" ];
+ setting_defaults.breadcrumbs = false;
+ jitsi.preferred_domain = "meet.ffmuc.net";
+ };
+ };
+ };
+}