From 6274c9af16a285785260569439c5b17812b5abd9 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 1 Sep 2025 23:23:34 +0200 Subject: [PATCH] tailscale: Format --- modules/system/services/tailscale.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/system/services/tailscale.nix b/modules/system/services/tailscale.nix index baf1a09..32f9361 100644 --- a/modules/system/services/tailscale.nix +++ b/modules/system/services/tailscale.nix @@ -1,4 +1,9 @@ -{ config, pkgs-unstable, lib, ... }: +{ + config, + pkgs-unstable, + lib, + ... +}: let cfg = config.custom.services.tailscale; in @@ -23,9 +28,11 @@ in services.tailscale = { enable = true; package = pkgs-unstable.tailscale; + authKeyFile = config.sops.secrets."tailscale/auth-key".path; openFirewall = true; useRoutingFeatures = if cfg.exitNode.enable then "server" else "client"; + extraUpFlags = [ "--reset=true" ]; extraSetFlags = [ "--ssh=${lib.boolToString cfg.ssh.enable}"