diff --git a/systems/zaatar/configuration.nix b/systems/zaatar/configuration.nix index 16a4b9e..8b7d7a1 100644 --- a/systems/zaatar/configuration.nix +++ b/systems/zaatar/configuration.nix @@ -13,6 +13,7 @@ in { ./kiosk.nix ./moodle-dl-meinhark.nix ./pulseaudio.nix + ./home-assistant.nix ./tuna.nix ./grocy.nix ./spotifyd.nix diff --git a/systems/zaatar/home-assistant.nix b/systems/zaatar/home-assistant.nix new file mode 100644 index 0000000..e8e0a51 --- /dev/null +++ b/systems/zaatar/home-assistant.nix @@ -0,0 +1,16 @@ +{ + networking.firewall.allowedTCPPorts = [8123]; + + virtualisation.oci-containers = { + backend = "podman"; + containers.homeassistant = { + volumes = ["home-assistant:/config"]; + environment.TZ = "Europe/Berlin"; + image = "ghcr.io/home-assistant/home-assistant:stable"; + extraOptions = [ + "--network=host" + # "--device=/dev/ttyUSB0:/dev/ttyACM0" # Example, change this to match your own hardware + ]; + }; + }; +}