cfg/host/roam/services.nix
2025-07-15 20:58:17 +02:00

37 lines
613 B
Nix

{
var,
...
}:
{
services = {
nginx = {
enable = true;
virtualHosts.default = {
serverName = "_";
default = true;
rejectSSL = true;
locations."/".return = "444";
};
virtualHostsPriv."roam.lan" = {
locations."/" = { };
};
virtualHosts."roam.hdohmen.de" = {
enableACME = true;
locations."/" = { };
};
};
openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
80
443
];
};
}