37 lines
687 B
Nix
37 lines
687 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/openssh.nix
|
|
./openssh.nix
|
|
../../services/prometheus-node.nix
|
|
../../services/nginx.nix
|
|
./nginx.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "www";
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
80 # HTTP/1
|
|
443 # HTTP/2
|
|
];
|
|
allowedUDPPorts = [
|
|
443 # HTTP/3
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.banner = ''
|
|
__ __ __ __ __ __ __ __ __
|
|
/\ \/\ \/\ \/\ \/\ \/\ \/\ \/\ \/\ \
|
|
\ \ \_/ \_/ \ \ \_/ \_/ \ \ \_/ \_/ \
|
|
\ \___x___/'\ \___x___/'\ \___x___/'
|
|
\/__//__/ \/__//__/ \/__//__/
|
|
'';
|
|
};
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|