From e6931bf486e73f20d4c28cd7a2567da6c939ba47 Mon Sep 17 00:00:00 2001 From: DavHau Date: Mon, 2 Dec 2024 15:50:25 +0700 Subject: [PATCH] zerotier: improve docs for moons --- clanModules/zerotier/roles/moon.nix | 3 +++ nixosModules/clanCore/zerotier/default.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/clanModules/zerotier/roles/moon.nix b/clanModules/zerotier/roles/moon.nix index 81f11cd9d..3d70b01d8 100644 --- a/clanModules/zerotier/roles/moon.nix +++ b/clanModules/zerotier/roles/moon.nix @@ -10,6 +10,9 @@ Other machines can join this moon by adding this moon in their config. It will be reachable under the given stable endpoints. ''; + example = '' + [ 1.2.3.4" "10.0.0.3/9993" "2001:abcd:abcd::3/9993" ] + ''; }; # TODO, we want to remove these options from clanCore config.clan.core.networking.zerotier.moon.stableEndpoints = diff --git a/nixosModules/clanCore/zerotier/default.nix b/nixosModules/clanCore/zerotier/default.nix index 4ae28a7e1..0b8094d9d 100644 --- a/nixosModules/clanCore/zerotier/default.nix +++ b/nixosModules/clanCore/zerotier/default.nix @@ -38,6 +38,9 @@ in Other machines can join this moon by adding this moon in their config. It will be reachable under the given stable endpoints. ''; + example = '' + [ 1.2.3.4" "10.0.0.3/9993" "2001:abcd:abcd::3/9993" ] + ''; }; orbitMoons = lib.mkOption { type = lib.types.listOf lib.types.str;