nix/hosts/laptop-server/modules/networking.nix
2024-12-12 16:23:35 -07:00

22 lines
No EOL
460 B
Nix

{ ... }:
{
networking = {
hostName = "ty-laptop-server";
# Enable firewall
firewall = {
enable = true;
trustedInterfaces = [ "lo" "ve-jellyfin" ];
};
# Enable NetworkManager
networkmanager.enable = true;
};
# Tailscale overlay network configuration
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
openFirewall = true;
};
}