Files
clan-core/clanModules/zerotier/roles/moon.nix
2024-12-02 15:50:49 +07:00

21 lines
622 B
Nix

{ config, lib, ... }:
{
imports = [
../shared.nix
];
options.clan.zerotier.moon.stableEndpoints = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = ''
Make this machine a moon.
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 =
config.clan.zerotier.moon.stableEndpoints;
}