From 05a3e49c482d4cd60e13ccc2f2f49b505b12e71c Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Fri, 21 Nov 2025 13:14:54 -0500 Subject: [PATCH] set default fluffy homeserver to psychal --- modules/services/matrix/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/services/matrix/default.nix b/modules/services/matrix/default.nix index 3e9d7f5..5590389 100644 --- a/modules/services/matrix/default.nix +++ b/modules/services/matrix/default.nix @@ -6,6 +6,19 @@ }: let sopsFolder = builtins.toString inputs.nix-secrets + "/sops"; + fluffyconfig = pkgs.writeText "fluffychat-config.json" ( + builtins.toJSON { + defaultHomeserver = "psychal.link"; + } + ); + customFluffy = pkgs.unstable.fluffychat-web.overrideAttrs ( + final: prev: { + + postInstall = '' + cp ${fluffyconfig} $out/config.json + ''; + } + ); in { imports = [ @@ -13,7 +26,7 @@ in ]; environment.systemPackages = [ - pkgs.unstable.fluffychat-web + customFluffy pkgs.unstable.element-web ]; @@ -53,7 +66,7 @@ in reverse_proxy unix//run/tuwunel/tuwunel.sock ''; "fl.psychal.link".extraConfig = '' - root * ${pkgs.unstable.fluffychat-web} + root * ${customFluffy} file_server ''; "em.psychal.link".extraConfig = ''