nixos-config/machines/chungus/hass.nix

24 lines
575 B
Nix
Raw Normal View History

2024-08-29 03:26:04 +02:00
{
config,
lib,
pkgs,
...
}:
2023-05-05 22:33:05 +02:00
{
virtualisation.oci-containers = {
containers.homeassistant = {
volumes = [ "/srv2/home-assistant:/config" ];
2023-05-05 22:33:05 +02:00
environment.TZ = "Europe/Berlin";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [ "--network=host" ];
};
};
2023-05-20 22:31:36 +02:00
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 8123 ];
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 8123 ];
healthchecks.closed.retiolum.ports.hass = [ 8123 ];
2023-05-05 22:33:05 +02:00
}