nix-config/hosts/vps/modules/network.nix
lightly-toasted 24900346f9 feat(vps): add caddy
- Enabled caddy service
- Opened port 80, 443 for Caddy
2025-09-25 16:33:32 +09:00

11 lines
220 B
Nix

{ config, pkgs, ... }:
{
networking.hostName = "vps";
networking.domain = "";
networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443 ];
};
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
}