2023-07-27 17:45:53 +00:00
|
|
|
{ config, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-09-14 06:40:30 +00:00
|
|
|
virtualisation.oci-containers = {
|
2023-09-17 14:55:11 +00:00
|
|
|
backend = "docker";
|
2023-09-14 06:40:30 +00:00
|
|
|
containers.homeassistant = {
|
|
|
|
volumes = [ "home-assistant:/config" ];
|
|
|
|
environment.TZ = "Europe/Berlin";
|
|
|
|
image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
|
|
extraOptions = [
|
|
|
|
"--network=host"
|
|
|
|
"--device=/dev/ttyUSB0:/dev/ttyUSB0"
|
|
|
|
];
|
2023-07-27 17:45:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|