mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
186d1c69de
Former-commit-id: c5420f8d3a
14 lines
346 B
Nix
14 lines
346 B
Nix
{ config, ... }: {
|
|
services.tailscale = {
|
|
enable = config.var.tailscale;
|
|
useRoutingFeatures = "both";
|
|
authKeyFile = "/etc/tailscale/authKey";
|
|
openFirewall = true;
|
|
extraUpFlags = [ "--advertise-exit-node" ];
|
|
};
|
|
|
|
# Fix DNS & IPv6 bugs
|
|
networking.nftables.enable = true;
|
|
services.resolved.enable = true;
|
|
}
|