2024-12-21 11:15:14 -07:00
|
|
|
{ pkgs, ... }:
|
2024-12-11 19:32:45 -07:00
|
|
|
{
|
2024-12-12 15:33:50 -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
|
2024-12-12 15:33:50 -07:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2024-12-21 11:15:14 -07:00
|
|
|
package = pkgs.iptables;
|
2024-12-12 15:33:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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
|
|
|
}
|