mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
feat(monitoring): home-assistant
This commit is contained in:
parent
2ed7d5516d
commit
3991badf2c
5 changed files with 22 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue