mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-02 18:53:59 +01:00
Drop the now-meaningless kubevirt- prefix and move the hosts out of hosts/k8s/, following the existing 12kingdoms-shoukei layout: the directory and output carry the theme prefix while the configuration, hostname and colmena target are the bare name (shoryu, shushou, youko). - hosts/k8s/kubevirt-* -> hosts/12kingdoms-*; the shared disko config becomes host-disko-fs.nix; the now-different relative imports are fixed - outputs, vars/networking.nix keys, the Justfile recipes/tags, the eval tests and the docs follow - colmena reaches these hosts by IP (a new targetHost override), since their DNS name changes with the hostname and is not resolvable until the router learns it
45 lines
882 B
Nix
45 lines
882 B
Nix
{
|
|
nut = {
|
|
enable = true;
|
|
mode = "standalone";
|
|
upsmonEnable = false;
|
|
killPowerEnable = false;
|
|
upsdListen = [
|
|
{
|
|
address = "127.0.0.1";
|
|
port = 3493;
|
|
}
|
|
];
|
|
driver = "nutdrv_qx";
|
|
port = "auto";
|
|
vendorId = true;
|
|
productId = true;
|
|
};
|
|
|
|
exporter = {
|
|
enable = true;
|
|
listenAddress = "192.168.5.182";
|
|
port = 9199;
|
|
nutServer = "127.0.0.1";
|
|
exportsAllNumericVariables = true;
|
|
startsAfterNut = true;
|
|
requiresNut = false;
|
|
};
|
|
|
|
victoriametricsJobCount = 1;
|
|
victoriametrics = {
|
|
job_name = "nut-exporter-homelab-ups";
|
|
scrape_interval = "30s";
|
|
metrics_path = "/ups_metrics";
|
|
params.ups = [ "homelab" ];
|
|
target = "192.168.5.182:9199";
|
|
labels = {
|
|
type = "app";
|
|
app = "nut";
|
|
host = "shushou";
|
|
env = "homelab";
|
|
cluster = "homelab";
|
|
};
|
|
};
|
|
}
|