mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 10:07:44 +00:00
17 lines
443 B
Nix
17 lines
443 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, Zen
|
|
# and all other tools. Skill issue.
|
|
services.resolved.domains = [ "warthog-major.ts.net" ];
|
|
|
|
services.tailscale = enabled {
|
|
interfaceName = interface;
|
|
useRoutingFeatures = "both";
|
|
};
|
|
|
|
networking.firewall.trustedInterfaces = [ interface ];
|
|
}
|