Skip to content

static-hosts

Statically configure the host names of machines based on their respective zerotier-ip.

Will be deprecated

The static-hosts module might eventually be migrated to 'clanServices'*

See: clanServices

Categories

Uncategorized

Usage via Inventory

This module cannot be used via the inventory interface.

Usage via Nix

This module can be also imported directly in your nixos configuration. Although it is recommended to use the inventory interface if available.

Some modules are considered 'low-level' or 'expert modules' and are not available via the inventory interface.

{config, lib, inputs, ...}: {
    imports = [ inputs.clan-core.clanModules.static-hosts ];
    # ...
}

Module Options

The following options are available for this module.

clan.static-hosts.excludeHosts

Hosts that should be excluded

Type: list of string

Default:

if config.clan.static-hosts.topLevelDomain != "" then
  [ ]
else
  [ config.clan.core.settings.machine.name ];

Declared in: clanModules/static-hosts

clan.static-hosts.topLevelDomain

Top level domain to reach hosts

Type: string

Default:

""

Declared in: clanModules/static-hosts