Nix-Config/system/kernighan/services/home_assistant.nix

18 lines
394 B
Nix
Raw Normal View History

2023-07-27 17:45:53 +00:00
{ config, pkgs, inputs, ... }:
{
virtualisation.oci-containers = {
2023-09-17 14:55:11 +00:00
backend = "docker";
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
};
};
}