1

Add homeassistant service

This commit is contained in:
2023-12-27 22:58:20 +01:00
parent 26e6616d8c
commit 7ae9d39e7a

View File

@ -0,0 +1,32 @@
{
config,
lib,
pkgs,
...
}: {
virtualisation.oci-containers.containers.homeassistant = {
image = "lscr.io/linuxserver/homeassistant:latest";
autoStart = true;
dependsOn = [];
ports = [
# "8123:8123" # WebUI
];
volumes = [
"homeassistant_config:/config"
];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
};
extraOptions = [
"--net=behind-nginx"
"--device=/dev/ttyUSB0:/dev/ttyUSB0" # Sonoff Zigbee Stick
];
};
}