From 9212cd4c37be5b76fde95d1077a3a6b7afc439eb Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Mon, 19 Aug 2024 22:30:59 +0200 Subject: [PATCH] element-web: Remove --- machines/loki/configuration.nix | 1 - modules/element-web/default.nix | 29 ----------------- modules/element-web/element-web.json | 47 ---------------------------- 3 files changed, 77 deletions(-) delete mode 100644 modules/element-web/default.nix delete mode 100755 modules/element-web/element-web.json diff --git a/machines/loki/configuration.nix b/machines/loki/configuration.nix index 6b14c0c..093bf99 100644 --- a/machines/loki/configuration.nix +++ b/machines/loki/configuration.nix @@ -44,7 +44,6 @@ enable = true; wayland = true; }; - element-web.enable = false; fonts.enable = true; gnome.enable = true; greetd = { diff --git a/modules/element-web/default.nix b/modules/element-web/default.nix deleted file mode 100644 index ad5d901..0000000 --- a/modules/element-web/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - lib, - pkgs, - config, - ... -}: -with lib; -let - cfg = config.eboskma.element-web; - matrixClientConfig = pkgs.writeText "element-web.json" (builtins.readFile ./element-web.json); -in -{ - options.eboskma.element-web = { - enable = mkEnableOption "activate element-web"; - }; - - config = mkIf cfg.enable { - eboskma.podman.enable = true; - - virtualisation.oci-containers.containers = { - element-web = { - autoStart = true; - image = "vectorim/element-web"; - ports = [ "8888:80" ]; - volumes = [ "${matrixClientConfig}:/app/config.json" ]; - }; - }; - }; -} diff --git a/modules/element-web/element-web.json b/modules/element-web/element-web.json deleted file mode 100755 index 3a21840..0000000 --- a/modules/element-web/element-web.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "default_server_config": { - "m.homeserver": { - "base_url": "https://matrix-client.matrix.org", - "server_name": "matrix.org" - }, - "m.identity_server": { - "base_url": "https://vector.im" - } - }, - "disable_custom_urls": false, - "disable_guests": true, - "disable_login_language_selector": false, - "disable_3pid_login": false, - "brand": "Element", - "integrations_ui_url": "https://scalar.vector.im/", - "integrations_rest_url": "https://scalar.vector.im/api", - "integrations_widgets_urls": [ - "https://scalar.vector.im/_matrix/integrations/v1", - "https://scalar.vector.im/api", - "https://scalar-staging.vector.im/_matrix/integrations/v1", - "https://scalar-staging.vector.im/api", - "https://scalar-staging.riot.im/scalar/api" - ], - "bug_report_endpoint_url": "https://element.io/bugreports/submit", - "defaultCountryCode": "NL", - "showLabsSettings": true, - "features": { }, - "default_federate": true, - "default_theme": "light", - "roomDirectory": { - "servers": [ - "matrix.org" - ] - }, - "piwik": false, - "enable_presence_by_hs_url": { - "https://matrix.org": false, - "https://matrix-client.matrix.org": false - }, - "settingDefaults": { - "breadcrumbs": true - }, - "jitsi": { - "preferredDomain": "jitsi.riot.im" - } -}