homeassistant

This commit is contained in:
2025-07-30 21:08:05 -05:00
parent 0bb3053c2a
commit b15e1c4289
5 changed files with 148 additions and 20 deletions

View File

@@ -13,21 +13,27 @@
config = lib.mkIf config.sysconfig.opts.virtualization.homeassistant.enable {
virtualisation.oci-containers = {
backend = "docker";
containers.homeassistant = {
autoStart = true;
ports = [ "8123:8123" ];
volumes = [
config.sysconfig.opts.virtualization.homeassistant.configvol
"/run/dbus:/run/dbus:ro"
];
environment.TZ = "America/Chicago";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"
#"--device=/dev/ttyACM0:/dev/ttyACM0" # Use this for external devices e.g. zigbee
];
containers.home-assistant = {
autoStart = true;
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.25";
config = {
services.home-assistant = {
enable = true;
openFirewall = true;
extraComponents = [
"wyoming"
];
};
system.stateVersion = "25.05";
};
};
};