feat: Added zerotier

Signed-off-by: uttarayan21 <email@uttarayan.me>
This commit is contained in:
uttarayan21
2025-05-06 01:29:33 +05:30
parent 4433a6ab99
commit 26a717bf0f
4 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
{config, ...}: {
sops = {
secrets."zerotier/api_key".owner = config.users.users.zeronsd.name;
};
services.zerotierone = {
enable = true;
port = 9994;
joinNetworks = [
"abfd31bd4766754d"
];
};
services.zeronsd = {
servedNetworks = {
abfd31bd4766754d = {
settings = {
domain = "zt.darksailor.dev";
token = config.sops.secrets."zerotier/api_key".path;
};
};
};
};
}