nixos/system/services/home-assistant.nix

25 lines
647 B
Nix
Raw Permalink Normal View History

2024-07-30 15:06:34 +01:00
{ config, ... }:
{
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
2024-07-30 15:06:34 +01:00
volumes = [
"home-assistant:/config"
"/run/dbus:/run/dbus:ro"
2024-12-01 13:33:49 +00:00
"/var/lib/syncthing/Music:/music"
2024-07-30 15:06:34 +01:00
];
environment.TZ = config.time.timeZone;
image = "ghcr.io/home-assistant/home-assistant:2024.8.0.dev202407210221";
2024-07-30 15:06:34 +01:00
extraOptions = [ "--network=host" ];
};
};
networking.firewall = {
allowedTCPPorts = [
1400
1443
];
allowedUDPPorts = [ 5353 ];
};
services.caddy.virtualHosts."home.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:8123";
}