1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2026-01-14 09:11:00 +00:00
ncc/modules/linux/tailscale.nix
2025-02-23 21:05:40 +03:00

17 lines
447 B
Nix

{ lib, ... }: let
inherit (lib) enabled;
# Shorter is better for networking interfaces IMO.
interface = "ts0";
in {
# This doesn't work with dig but works with curl, Firefox
# and all other tools. Skill issue.
services.resolved.domains = [ "warthog-major.ts.net" ];
services.tailscale = enabled {
interfaceName = interface;
useRoutingFeatures = "both";
};
networking.firewall.trustedInterfaces = [ interface ];
}