2021-07-14 22:49:45 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Use the docker container because it's officially supported.
|
|
|
|
virtualisation.oci-containers = {
|
|
|
|
containers = {
|
|
|
|
home-assistant = {
|
2022-09-14 20:37:57 -04:00
|
|
|
image = "ghcr.io/home-assistant/home-assistant:2022.9.4";
|
2021-07-14 22:49:45 -04:00
|
|
|
volumes =
|
2021-08-02 12:17:27 -04:00
|
|
|
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
|
2021-07-14 22:49:45 -04:00
|
|
|
extraOptions = [ "--privileged" "--network=host" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|