41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/nginx.nix
|
|
../../services/postgres.nix
|
|
../../services/synapse.nix
|
|
../../services/draupnir.nix
|
|
../../services/prometheus.nix
|
|
../../services/grafana.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "matrix";
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
80 # HTTP/1
|
|
443 # HTTP/2
|
|
8448 # Matrix federation
|
|
];
|
|
allowedUDPPorts = [
|
|
443 # HTTP/3
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.banner = ''
|
|
__ __
|
|
/\ \__ __ /\ \
|
|
___ ___ __ \ \ ,_\ _ __ /\_\ __ _ ___ ___ ___\ \ \____
|
|
/' __` __`\ /'__`\ \ \ \/ /\`'__\/\ \ /\ \/'\ /'___\ /'___\ /'___\ \ '__`\
|
|
/\ \/\ \/\ \/\ \L\.\_\ \ \_\ \ \/ \ \ \\/> </ /\ \__//\ \__//\ \__/\ \ \L\ \
|
|
\ \_\ \_\ \_\ \__/.\_\\ \__\\ \_\ \ \_\/\_/\_\ \ \____\ \____\ \____\\ \_,__/
|
|
\/_/\/_/\/_/\/__/\/_/ \/__/ \/_/ \/_/\//\/_/ \/____/\/____/\/____/ \/___/
|
|
'';
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
}
|