set default fluffy homeserver to psychal

This commit is contained in:
TheWanderingCrow 2025-11-21 13:14:54 -05:00
parent 6152cf2575
commit 05a3e49c48

View file

@ -6,6 +6,19 @@
}: }:
let let
sopsFolder = builtins.toString inputs.nix-secrets + "/sops"; 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 in
{ {
imports = [ imports = [
@ -13,7 +26,7 @@ in
]; ];
environment.systemPackages = [ environment.systemPackages = [
pkgs.unstable.fluffychat-web customFluffy
pkgs.unstable.element-web pkgs.unstable.element-web
]; ];
@ -53,7 +66,7 @@ in
reverse_proxy unix//run/tuwunel/tuwunel.sock reverse_proxy unix//run/tuwunel/tuwunel.sock
''; '';
"fl.psychal.link".extraConfig = '' "fl.psychal.link".extraConfig = ''
root * ${pkgs.unstable.fluffychat-web} root * ${customFluffy}
file_server file_server
''; '';
"em.psychal.link".extraConfig = '' "em.psychal.link".extraConfig = ''