nixos/system/services/home-assistant.nix
Evie Litherland-Smith 04cc4d20c4 Update again to latest stable home-assistant
Fix issue with HACS integrations not installing dependencies, is a
temporary workaround that should hopefully be fixed in a future
home-assistant version
2024-12-31 06:55:03 +00:00

30 lines
827 B
Nix

{ config, ... }:
{
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [
"/var/lib/home-assistant:/config"
"/run/dbus:/run/dbus:ro"
"/var/lib/syncthing/Music:/music"
"/tmp:/.dockerenv" # TEMP FIX FOR CONTAINER CHECKS
];
environment.TZ = config.time.timeZone;
image = "ghcr.io/home-assistant/home-assistant@sha256:db0f344d5126bfedd7bf18e0bfb8249a9a5e6785e2f6cb3728edbd393fff1981"; # 2024-12-20T10:54:13.805911135Z
extraOptions = [ "--network=host" ];
};
};
networking.firewall = {
allowedTCPPorts = [
1400
1443
];
allowedUDPPorts = [
1400
1443
5353
];
};
services.caddy.virtualHosts."home.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:8123";
}