nixos/system/services/home-assistant.nix
Evie Litherland-Smith af37c0c34a Add home-assistant container service
Move home/default into personal.nix and work.nix instead of flake, was
pulling in whole desktop config for server and wasting time/space
2024-07-21 18:40:13 +01:00

13 lines
461 B
Nix

{config, ...}: {
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = ["home-assistant:/config" "/run/dbus:/run/dbus:ro"];
environment.TZ = config.time.timeZone;
image = "ghcr.io/home-assistant/home-assistant:2024.8.0.dev202407210221";
extraOptions = ["--network=host"];
};
};
services.caddy.virtualHosts."home.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:8123";
}