19 lines
378 B
Nix
19 lines
378 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Home Assistant
|
|
virtualisation.oci-containers.containers."homeassistant" = {
|
|
autoStart = true;
|
|
image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
volumes = [
|
|
"/home/opsmaster/HomeAssistant:/config"
|
|
"/etc/localtime:/etc/localtime:ro"
|
|
];
|
|
extraOptions = [
|
|
"--device=/dev/ttyUSB0"
|
|
"--network=host"
|
|
"--privileged"
|
|
];
|
|
};`
|
|
}
|