infra/hosts/wiki2/default.nix
Ricardo (XenGi) Band d1079715fc
Some checks failed
Test Nix flake / Test nix flake (push) Has been cancelled
add dokuwiki
2026-11-28 01:10:50 +01:00

36 lines
703 B
Nix

{ ... }:
{
imports = [
../common.nix
../../services/openssh.nix
../../services/prometheus-node.nix
./dokuwiki.nix
];
networking = {
hostName = "wiki2";
firewall = {
allowedTCPPorts = [
80 # HTTP/1
443 # HTTP/2
];
allowedUDPPorts = [
443 # HTTP/3
];
};
};
environment.etc."ssh/banner".text = ''
__
__/\ \ __
__ __ __/\_\ \ \/'\ /\_\
/\ \/\ \/\ \/\ \ \ , < \/\ \
\ \ \_/ \_/ \ \ \ \ \\`\\ \ \
\ \___x___/'\ \_\ \_\ \_\ \_\
\/__//__/ \/_/\/_/\/_/\/_/
'';
services.openssh.settings.Banner = "/etc/ssh/banner";
system.stateVersion = "26.05";
}