Skip to main content

Configuration

By default, Nexigon Agent loads its configuration from /etc/nexigon/agent.toml. To configure Nexigon Agent, you need to provide the URL to your Nexigon Hub instance as wall as a project-specific deployment token. Furthermore, you need to provide a path to a device fingerprint script. The agent will use the output of that script to compute a device-specific fingerprint.

Here is an example:

/etc/nexigon/agent.toml
hub-url = "https://demo.nexigon.dev"
token = "deployment_UvsBJTcAKWo6LfPXMyDUXA2UvvTjHozDfMT3suY4SosZk2JrgH5JRzCYzX2yPEsRuC"

fingerprint-script = "/usr/libexec/nexigon/nexigon-device-fingerprint"

Device Fingerprints​

Device fingerprints are meant to be hardware-specific and never change over the lifetime of a device. If the storage of a device is never replaced and /etc/machine-id is persisted, then you may use the following script:

#!/usr/bin/env bash

set -euo pipefail

cat "/etc/machine-id"