cfg/host/roam/services.nix
2025-07-14 22:57:12 +02:00

37 lines
567 B
Nix

{
var,
...
}:
{
services = {
nginx = {
enable = true;
defaultListen = [
{
addr = var.wg.ips.roam;
ssl = true;
}
];
virtualHosts."roam.lan" = {
locations."/" = { };
};
virtualHostsPub."roam.hdohmen.de" = {
enableACME = true;
locations."/" = { };
};
};
openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
80
443
];
};
}