feat(monitoring): home-assistant

This commit is contained in:
arcnmx 2024-06-06 11:38:14 -07:00
parent 2ed7d5516d
commit 3991badf2c
5 changed files with 22 additions and 4 deletions

View file

@ -29,6 +29,7 @@ in {
in {
id = mkAlmostOptionDefault "home";
displayName = mkAlmostOptionDefault "Home Assistant";
prometheus.exporter.metricsPath = "/api/prometheus";
nixos = {
serviceAttr = "home-assistant";
assertions = mkIf config.enable [
@ -42,6 +43,7 @@ in {
port = mkAlmostOptionDefault 8123;
protocol = "http";
status.enable = true;
prometheus.exporter.enable = mkAlmostOptionDefault true;
};
homekit0 = {
port = mkAlmostOptionDefault 21063;