do too many things lmao

This commit is contained in:
Schrottkatze 2023-07-30 16:24:46 +02:00
parent c3695556c2
commit 3b666eee63
15 changed files with 555 additions and 87 deletions

View file

@ -1,5 +1,6 @@
{ config
, pkgsUnstable
, inputs
, ...
}:
@ -46,7 +47,8 @@ in
# This causes NixOS to use the flake defined in this repository instead of
# the build of Conduit built into nixpkgsUnstable.
package = pkgsUnstable.matrix-conduit;
# package = pkgsUnstable.matrix-conduit;
package = inputs.conduit.packages.${pkgsUnstable.system}.default;
settings.global = {
inherit server_name;
@ -60,13 +62,18 @@ in
defaults = {
email = admin_email;
};
certs = {
"katzen.cafe" = {
group = "nginx";
keyType = "rsa4096";
};
"matrix.katzen.cafe" = {
group = "nginx";
keyType = "rsa4096";
};
};
};
# ACME data must be readable by the NGINX user
users.users.nginx.extraGroups = [
"acme"
];
# Configure NGINX as a reverse proxy
services.nginx = {
enable = true;
@ -84,10 +91,19 @@ in
ssl = true;
}
{
addr = "[::]";
port = 443;
ssl = true;
} {
addr = "0.0.0.0";
port = 8448;
ssl = true;
}
{
addr = "[::]";
port = 8448;
ssl = true;
}
];
locations."/_matrix/" = {