nix/hosts/laptop-server/config/networking.nix

23 lines
553 B
Nix
Raw Normal View History

2024-12-21 11:15:14 -07:00
{ pkgs, ... }:
2024-12-11 19:32:45 -07:00
{
networking = {
hostName = "ty-laptop-server";
2024-12-11 19:32:45 -07:00
2024-12-21 11:15:14 -07:00
# TODO Firewall causes issues with containers, need to fix it
firewall = {
enable = true;
2024-12-21 11:15:14 -07:00
package = pkgs.iptables;
};
# Enable NetworkManager
networkmanager.enable = true;
};
2024-12-11 19:32:45 -07:00
# Tailscale overlay network configuration
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
openFirewall = true;
};
2024-12-21 11:15:14 -07:00
networking.firewall.trustedInterfaces = [ "tailscale0" ];
2024-12-11 19:32:45 -07:00
}