update home assistant
This commit is contained in:
parent
f9cb7b9e50
commit
1762022e66
1 changed files with 7 additions and 2 deletions
|
@ -1,14 +1,19 @@
|
||||||
{ config, pkgs, inputs, lib, ... }: {
|
{ config, pkgs, inputs, lib, ... }: {
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8123 ];
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers.homeassistant = {
|
containers.homeassistant = {
|
||||||
volumes = [ "home-assistant:/config" ];
|
volumes = [ "home-assistant:/config" ];
|
||||||
environment.TZ = "Europe/London";
|
environment.TZ = "Europe/London";
|
||||||
image =
|
image =
|
||||||
"ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
|
"ghcr.io/home-assistant/home-assistant:stable@sha256:5e3d2dde141812a4a54c140f3cbf52b9c74168bf25e8560978f499578902a363";
|
||||||
extraOptions = [ "--network=host" ];
|
extraOptions = [
|
||||||
|
"--network=host"
|
||||||
|
"--privileged"
|
||||||
|
"--device=/dev/ttyACM1:/dev/ttyACM1"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue