Archived
Check NixOS configurations / eval-hosts (pull_request) Successful in 10m59s
KEY (hub's SSH public key) is now stored in variables.nix as beszelHubKey and set by enable-agent.nix — no host file ever needs to touch it. TOKEN was already universal; this removes the last per-host beszel config. Importing enable-agent.nix in a build type is now the only step needed to add a new host to beszel monitoring. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
592 B
Nix
21 lines
592 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 ];
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|