mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-19 22:27:40 +02:00
20 lines
437 B
Nix
20 lines
437 B
Nix
{ pkgs, ... }:
|
|
{
|
|
environment.systemPackages = [ pkgs.tailscale ];
|
|
|
|
services.tailscale = {
|
|
enable = true;
|
|
port = 41641;
|
|
interfaceName = "tailscale0";
|
|
# allow the Tailscale UDP port through the firewall
|
|
openFirewall = true;
|
|
|
|
useRoutingFeatures = "server";
|
|
extraSetFlags = [
|
|
# advertise homelab subnet via tailscale
|
|
"--advertise-routes=192.168.5.0/24"
|
|
"--accept-routes=false"
|
|
];
|
|
};
|
|
}
|