From 0e513b6ce27635e4a31ea46103d319b3314977a1 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 9 May 2024 23:10:56 +0300 Subject: [PATCH] Add tailscale --- modules/tailscale.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/tailscale.nix diff --git a/modules/tailscale.nix b/modules/tailscale.nix new file mode 100644 index 0000000..d913ec1 --- /dev/null +++ b/modules/tailscale.nix @@ -0,0 +1,13 @@ +{ lib, ... }: with lib; + +let + # Shorter is better for networking interfaces IMO. + interface = "ts0"; +in systemConfiguration { + services.tailscale = enabled { + interfaceName = interface; + useRoutingFeatures = "both"; + }; + + networking.firewall.trustedInterfaces = [ interface ]; +}