new tailscale api

This commit is contained in:
sid 2026-05-02 19:17:07 +02:00
parent 0b1cfdf457
commit 00f335023b
6 changed files with 3191 additions and 81 deletions

View file

@ -1,11 +1,27 @@
{ inputs, ... }:
{ inputs, config, ... }:
{
imports = [ inputs.synix.nixosModules.tailscale ];
services.tailscale = {
enable = true;
enableSSH = true;
loginServer = "https://hs.sid.ovh";
tailnets = {
personal = {
default = true;
loginServer = "https://hs.sid.ovh";
authKeyFile = config.sops.secrets."tailscale/personal-key".path;
enableSSH = true;
acceptDNS = false; # use coredns
};
work = {
loginServer = "https://headscale.cryodev.xyz";
enableSSH = true;
acceptDNS = true;
authKeyFile = config.sops.secrets."tailscale/work-key".path;
};
};
};
sops.secrets."tailscale/personal-key" = { };
sops.secrets."tailscale/work-key" = { };
}