Archived
Check NixOS configurations / eval-hosts (pull_request) Successful in 10m40s
Replace per-host host-token.nix imports with a single beszel-token secret in secrets/common.yaml, wired once in enable-agent.nix. Host files now only need services.beszel.agent.environment.KEY — no imports block required. Delete modules/beszel/host-token.nix (no longer referenced anywhere). Action needed: run `sops secrets/common.yaml` and add `beszel-token: <value>` from the beszel hub UI before deploying. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
719 B
Nix
24 lines
719 B
Nix
{ vars, ... }:
|
|
{
|
|
networking = {
|
|
hostName = vars.haServer1Host;
|
|
hostId = "3a4b5c6d";
|
|
useDHCP = false;
|
|
interfaces.${vars.vmLanInterface}.ipv4.addresses = [{
|
|
address = vars.haServer1Ip;
|
|
prefixLength = vars.lanPrefixLength;
|
|
}];
|
|
interfaces.${vars.vmStorageInterface}.ipv4.addresses = [{
|
|
address = vars.haServer1StorageIp;
|
|
prefixLength = vars.haStoragePrefixLength;
|
|
}];
|
|
defaultGateway = { address = vars.lanGateway; interface = vars.vmLanInterface; };
|
|
nameservers = [ vars.domainControllerIp ];
|
|
};
|
|
|
|
# Set KEY after pairing this host with the beszel hub (see docs/beszel.md).
|
|
# services.beszel.agent.environment.KEY = "";
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|