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 = ''