Some checks failed
Test Nix flake / Test nix flake (push) Has been cancelled
36 lines
703 B
Nix
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";
|
|
}
|