Archived
31 lines
879 B
Nix
31 lines
879 B
Nix
{ vars, ... }:
|
|
{
|
|
imports = [
|
|
(import ../../modules/beszel/host-token.nix {
|
|
name = "ha-server-1";
|
|
sopsFile = ../../secrets/ha-server-1.yaml;
|
|
})
|
|
];
|
|
|
|
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; the token is sops-managed.
|
|
# services.beszel.agent.environment.KEY = "";
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|