Skip to content

networking

Attribute: clan.core.networking

buildHost

Attribute: clan.core.networking.buildHost

The build SSH node where nixos-rebuild will be executed.

If set to null, the targetHost will be used.

format: user@host:port?SSH_OPTION=SSH_VALUE&SSH_OPTION_2=VALUE_2 examples: - machine.example.com - user@machine2.example.com - root@example.com:2222?IdentityFile=/path/to/private/key&StrictHostKeyChecking=yes

Type: null or string

Default:

null

networking.nix

targetHost

Attribute: clan.core.networking.targetHost

The target SSH node for deployment.

By default, the node's fully quantified domain name or hostname will be used.

If set to null, only local deployment will be supported.

format: user@host:port?SSH_OPTION=SSH_VALUE[&SSH_OPTION_2=VALUE_2] examples: - machine.example.com - user@machine2.example.com - root@example.com:2222?IdentityFile=/path/to/private/key&StrictHostKeyChecking=yes

Type: null or string

Default:

"root@\${config.networking.fqdnOrHostName}"

networking.nix

zerotier

Attribute: clan.core.networking.zerotier

controller

Attribute: clan.core.networking.zerotier.controller

enable

Attribute: clan.core.networking.zerotier.controller.enable

Whether to enable turn this machine into the networkcontroller.

Type: boolean

Default:

false
Example
true

zerotier

public

Attribute: clan.core.networking.zerotier.controller.public

everyone can join a public network without having the administrator to accept

Type: boolean

Default:

false

zerotier

moon

Attribute: clan.core.networking.zerotier.moon

orbitMoons

Attribute: clan.core.networking.zerotier.moon.orbitMoons

Join these moons. This machine will be able to reach all machines in these moons.

Type: list of string

Default:

[ ]

zerotier

stableEndpoints

Attribute: clan.core.networking.zerotier.moon.stableEndpoints

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.

Type: list of string

Default:

[ ]
Example
''
  [ 1.2.3.4" "10.0.0.3/9993" "2001:abcd:abcd::3/9993" ]
''

zerotier

name

Attribute: clan.core.networking.zerotier.name

zerotier network name

Type: string

Default:

"config.clan.core.name"

zerotier

networkId

Attribute: clan.core.networking.zerotier.networkId

zerotier networking id

Type: null or string

Default:

null

zerotier

settings

Attribute: clan.core.networking.zerotier.settings

override the network config in /var/lib/zerotier/bla/$network.json

Type: JSON value

zerotier

subnet

Attribute: clan.core.networking.zerotier.subnet

Readonly

zerotier subnet

Type: null or string

Default:

null

zerotier