new tailscale api
This commit is contained in:
parent
bc6ba27415
commit
8e3a2a703f
2 changed files with 38 additions and 23 deletions
|
|
@ -1,12 +1,27 @@
|
|||
{ inputs, ... }:
|
||||
{ inputs, config, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.synix.nixosModules.tailscale ];
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
enableSSH = true;
|
||||
acceptDNS = false; # use coredns
|
||||
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" = { };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue