39 lines
633 B
Nix
39 lines
633 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/openssh.nix
|
|
./hedgedoc.nix
|
|
../../services/nginx.nix
|
|
./nginx.nix
|
|
./postgres.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "md";
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
80 # HTTP/1
|
|
443 # HTTP/2
|
|
];
|
|
allowedUDPPorts = [
|
|
443 # HTTP/3
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.banner = ''
|
|
__
|
|
/\ \
|
|
___ ___ \_\ \
|
|
/' __` __`\ /'_` \
|
|
/\ \/\ \/\ \/\ \L\ \
|
|
\ \_\ \_\ \_\ \___,_\
|
|
\/_/\/_/\/_/\/__,_ /
|
|
'';
|
|
};
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|