mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
15 lines
533 B
Nix
15 lines
533 B
Nix
{
|
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
|
virtualisation.oci-containers = {
|
|
backend = "docker";
|
|
containers.homeassistant = {
|
|
volumes = [ "home-assistant:/config" ];
|
|
environment.TZ = "Europe/Amsterdam";
|
|
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
|
extraOptions = [
|
|
"--network=host"
|
|
# "--device=/dev/ttyACM0:/dev/ttyACM0" # Example, change this to match your own hardware
|
|
];
|
|
};
|
|
};
|
|
}
|