nixos-config/nixos/machines/pepe/hass.nix

21 lines
471 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./home-assistant/zigbee2mqtt.nix
];
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
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"
];
};
};
}