diff --git a/configs/packages.nix b/configs/packages.nix index 420d0ac..0bf2dff 100644 --- a/configs/packages.nix +++ b/configs/packages.nix @@ -275,7 +275,7 @@ in { libreoffice # gnumeric dia - pandoc + unstablePackages.pandoc niveumPackages.man-pandoc typst # proselint diff --git a/systems/zaatar/home-assistant.nix b/systems/zaatar/home-assistant.nix index 8359169..50c31e7 100644 --- a/systems/zaatar/home-assistant.nix +++ b/systems/zaatar/home-assistant.nix @@ -1,9 +1,10 @@ {config, ...}: let port = 8123; inherit (import ../../lib) restic; + influxPort = 9100; volumeName = "home-assistant.bak"; in { - networking.firewall.allowedTCPPorts = [port]; + networking.firewall.allowedTCPPorts = [port influxPort]; services.nginx.virtualHosts."home.kmein.r" = { locations."/" = { @@ -11,6 +12,13 @@ in { }; }; + services.influxdb = { + enable = true; + extraConfig = { + http.bind-address = ":${toString influxPort}"; + }; + }; + services.restic.backups.niveum = { initialize = true; inherit (restic) repository;