homelab/hosts/monitor/default.nix
plasmagoat 3362c47211
Some checks failed
Test / tests (push) Failing after 2m13s
/ OpenTofu (push) Successful in 13s
cleanup
2025-07-28 12:08:32 +02:00

41 lines
711 B
Nix

{
config,
name,
...
}: {
sops.secrets."restic/default-password" = {};
homelab = {
enable = true;
hostname = name;
tags = [name];
monitoring.enable = true;
motd.enable = true;
backups = {
enable = true;
backends = {
restic = {
enable = true;
repository = "/srv/restic-repo";
passwordFile = config.sops.secrets."restic/default-password".path;
};
};
};
services.prometheus = {
enable = true;
};
services.gatus = {
enable = true;
ui = {
title = "Homelab Status Dashboard";
header = "My Homelab Services";
};
};
};
system.stateVersion = "25.05";
}