homeassistant
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user