add valent
This commit is contained in:
parent
451ef9c46c
commit
461bbb1967
8 changed files with 105 additions and 3 deletions
22
clients/quadraticserver/matrix/bot.nix
Normal file
22
clients/quadraticserver/matrix/bot.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.nexusbot.nixosModules.default];
|
||||
|
||||
services = let
|
||||
socket = "/var/run/nexusbot/socket";
|
||||
domain = "register.federated.nexus";
|
||||
in {
|
||||
nexusbot = {
|
||||
enable = true;
|
||||
botPasswordFile = config.age.secrets."botPassword.age".path;
|
||||
smtpPasswordFile = config.age.secrets."smtpPassword.age".path;
|
||||
args = ["--socket" socket "--homeserver" config.services.grapevine.settings.server_discovery.client.base_url "--name" "nexusbot" "--inviteTo" "#community:federated.nexus" "--adminRoom" "#admins:federated.nexus" "--successUri" "https://federated.nexus/success"];
|
||||
group = "caddy";
|
||||
};
|
||||
|
||||
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy unix/${socket}";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue