minor cleanup

This commit is contained in:
Grimmauld 2024-01-26 12:50:59 +00:00
parent 08a9547c0b
commit 4e26f2df34

View file

@ -2,12 +2,7 @@
root_host = "grimmauld.de";
bridge_port = 9005; # netstat -nlp | grep 9005
in {
age.secrets = {
matrix_discord_bridge_token = {
file = ../secrets/matrix_discord_bridge_token.age;
# mode = "0600";
};
};
age.secrets.matrix_discord_bridge_token.file = ../secrets/matrix_discord_bridge_token.age;
services.matrix-synapse-next.settings.app_service_config_files = [ "/var/lib/matrix-synapse/discord-registration.yaml" ];
@ -20,11 +15,11 @@ in {
bridge = {
enableSelfServiceBridging = true;
domain = root_host;
homeserverUrl = "https://grimmauld.de"; # fixme does this work? Potentially need root_host instead
homeserverUrl = "https://${root_host}";
};
};
port = bridge_port;
localpart = "_discord_bot"; # fixme
localpart = "_discord_bot";
environmentFile = config.age.secrets.matrix_discord_bridge_token.path;
};
}