1
0
Fork 0
puter/profiles/trusted/tailscale.nix

22 lines
334 B
Nix
Raw Normal View History

2025-07-14 21:18:44 +02:00
{
config,
lib,
...
}:
let
cfg = config.profiles.trusted;
in
{
config = lib.mkIf cfg.enable {
services.tailscale = {
enable = true;
openFirewall = true;
useRoutingFeatures = "both"; # TODO
};
networking.firewall.trustedInterfaces = [
config.services.tailscale.interfaceName
];
};
}