new tailscale api
This commit is contained in:
parent
bc6ba27415
commit
8e3a2a703f
2 changed files with 38 additions and 23 deletions
38
flake.lock
generated
38
flake.lock
generated
|
|
@ -1375,11 +1375,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775933806,
|
"lastModified": 1776736017,
|
||||||
"narHash": "sha256-rdXTziFNOeL8BWWngh8cmucmDkdfgWPixgZXn3EtYbs=",
|
"narHash": "sha256-D3hsaUZLyiJ96d5tknAyS4Uenv6FDZDUTZyr/Jscxg4=",
|
||||||
"owner": "tale",
|
"owner": "tale",
|
||||||
"repo": "headplane",
|
"repo": "headplane",
|
||||||
"rev": "418c3bc2556c3197414f462727a2f0545b39907a",
|
"rev": "4d252833effb13d1cdd48247d513a2afa2f0ad5e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1906,11 +1906,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable_2": {
|
"nixpkgs-unstable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776169885,
|
"lastModified": 1776548001,
|
||||||
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
|
"narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9",
|
"rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -1938,11 +1938,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776067740,
|
"lastModified": 1776734388,
|
||||||
"narHash": "sha256-B35lpsqnSZwn1Lmz06BpwF7atPgFmUgw1l8KAV3zpVQ=",
|
"narHash": "sha256-vl3dkhlE5gzsItuHoEMVe+DlonsK+0836LIRDnm6MXQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "7e495b747b51f95ae15e74377c5ce1fe69c1765f",
|
"rev": "10e7ad5bbcb421fe07e3a4ad53a634b0cd57ffac",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -2299,11 +2299,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1775585728,
|
"lastModified": 1776796298,
|
||||||
"narHash": "sha256-8Psjt+TWvE4thRKktJsXfR6PA/fWWsZ04DVaY6PUhr4=",
|
"narHash": "sha256-PcRvlWayisPSjd0UcRQbhG8Oqw78AcPE6x872cPRHN8=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "git-hooks.nix",
|
"repo": "git-hooks.nix",
|
||||||
"rev": "580633fa3fe5fc0379905986543fd7495481913d",
|
"rev": "3cfd774b0a530725a077e17354fbdb87ea1c4aad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -2354,11 +2354,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776119890,
|
"lastModified": 1776771786,
|
||||||
"narHash": "sha256-Zm6bxLNnEOYuS/SzrAGsYuXSwk3cbkRQZY0fJnk8a5M=",
|
"narHash": "sha256-DRFGPfFV6hbrfO9a1PH1FkCi7qR5FgjSqsQGGvk1rdI=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "d4971dd58c6627bfee52a1ad4237637c0a2fb0cd",
|
"rev": "bef289e2248991f7afeb95965c82fbcd8ff72598",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -2519,11 +2519,11 @@
|
||||||
"stylix": "stylix_3"
|
"stylix": "stylix_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776284936,
|
"lastModified": 1777741303,
|
||||||
"narHash": "sha256-43Bao4US6hrMevnx2fyKFIlkH8KvKDGghz74cl6s1p8=",
|
"narHash": "sha256-zSzzDpJdKhzQbShaAJ+J97kllAQ4nttFr4VMoln2LJo=",
|
||||||
"ref": "release-25.11",
|
"ref": "release-25.11",
|
||||||
"rev": "0c13e9dabd0b573132238b97b634d0ba5e8be830",
|
"rev": "e801c318a76d147e167ec97342d4d86b302681b8",
|
||||||
"revCount": 28,
|
"revCount": 35,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.sid.ovh/sid/synix.git"
|
"url": "https://git.sid.ovh/sid/synix.git"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,27 @@
|
||||||
{ inputs, ... }:
|
{ inputs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ inputs.synix.nixosModules.tailscale ];
|
imports = [ inputs.synix.nixosModules.tailscale ];
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
tailnets = {
|
||||||
|
personal = {
|
||||||
|
default = true;
|
||||||
|
loginServer = "https://hs.sid.ovh";
|
||||||
|
authKeyFile = config.sops.secrets."tailscale/personal-key".path;
|
||||||
enableSSH = true;
|
enableSSH = true;
|
||||||
acceptDNS = false; # use coredns
|
acceptDNS = false; # use coredns
|
||||||
loginServer = "https://hs.sid.ovh";
|
|
||||||
};
|
};
|
||||||
|
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