updates to unstable

This commit is contained in:
TheWanderingCrow 2026-04-04 19:45:46 -04:00
parent 9ec746e7da
commit f83d4613e7
2 changed files with 1 additions and 36 deletions

View file

@ -6,26 +6,8 @@
}:
let
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
fluffyconfig = pkgs.writeText "fluffychat-config.json" (
builtins.toJSON {
defaultHomeserver = "psychal.link";
}
);
customFluffy = pkgs.fluffychat-web.overrideAttrs (
final: prev: {
postInstall = ''
cp ${fluffyconfig} $out/config.json
'';
}
);
in
{
environment.systemPackages = [
customFluffy
pkgs.element-web
];
sops.secrets."matrix/registration_token" = {
owner = "tuwunel";
sopsFile = "${sopsFolder}/services.yaml";
@ -54,21 +36,4 @@ in
networking.firewall.allowedTCPPorts = [ 8448 ];
users.users.caddy.extraGroups = [ "tuwunel" ];
services.caddy = {
enable = true;
virtualHosts = {
"psychal.link, psychal.link:8448".extraConfig = ''
reverse_proxy unix//run/tuwunel/tuwunel.sock
'';
"fl.psychal.link".extraConfig = ''
root * ${customFluffy}
file_server
'';
"em.psychal.link".extraConfig = ''
root * ${pkgs.element-web}
file_server
'';
};
};
}