dotfiles/flakes/common/nix_modules/tailnet.nix
2025-10-21 22:12:23 -05:00

22 lines
539 B
Nix

{
config,
pkgs,
...
}:
{
environment.systemPackages = with pkgs; [ tailscale ];
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = "client";
authKeyFile = config.age.secrets.headscale_auth.path;
extraUpFlags = [
"--login-server=https://headscale.joshuabell.xyz"
];
extraDaemonFlags = [
"--no-logs-no-support"
];
};
networking.firewall.trustedInterfaces = [ config.services.tailscale.interfaceName ];
networking.firewall.checkReversePath = "loose";
}