From 63152642d0ab4ca96e92c2f03e50bbafc8341137 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 10 Dec 2025 20:14:06 +0200 Subject: [PATCH] feat: tailscale --- modules/nixos/tailscale.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/nixos/tailscale.nix diff --git a/modules/nixos/tailscale.nix b/modules/nixos/tailscale.nix new file mode 100644 index 0000000..728342b --- /dev/null +++ b/modules/nixos/tailscale.nix @@ -0,0 +1,23 @@ +{ + flake.modules.nixos.tailscale = { + config, + lib, + ... + }: let + cfg = config.arta.tailscale; + in { + options.arta.tailscale = { + enableSSH = lib.mkOption { + type = lib.types.bool; + default = true; + }; + }; + + config = { + services.tailscale = { + enable = true; + extraSetFlags = lib.lists.optional cfg.enableSSH "--ssh"; + }; + }; + }; +} -- 2.44.1