MyNixOS website logo
option

services.yggdrasil.persistentKeys

Whether to enable automatic generation and persistence of keys. If enabled, a private key will be generated on first startup and stored at /var/lib/yggdrasil/private.pem. This ensures the Yggdrasil node retains the same IPv6 address across reboots.

If you have existing keys from a previous installation (in the old keys.json format at /var/lib/yggdrasil/keys.json), they will be automatically migrated to the new PEM format on first startup.

Note: This option is mutually exclusive with settings.PrivateKeyPath. If you want to use externally managed keys, use settings.PrivateKeyPath instead .

Declarations
Type
boolean
Default
false
Example
true