23 lines
No EOL
553 B
Nix
23 lines
No EOL
553 B
Nix
{ pkgs, ... }:
|
|
{
|
|
networking = {
|
|
hostName = "ty-laptop-server";
|
|
|
|
# TODO Firewall causes issues with containers, need to fix it
|
|
firewall = {
|
|
enable = true;
|
|
package = pkgs.iptables;
|
|
};
|
|
|
|
# Enable NetworkManager
|
|
networkmanager.enable = true;
|
|
};
|
|
|
|
# Tailscale overlay network configuration
|
|
services.tailscale = {
|
|
enable = true;
|
|
useRoutingFeatures = "both";
|
|
openFirewall = true;
|
|
};
|
|
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
|
} |