18 lines
394 B
Nix
18 lines
394 B
Nix
{ config, pkgs, inputs, ... }:
|
|
|
|
{
|
|
virtualisation.oci-containers = {
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|