athens/modules/home-assistant/default.nix
2022-09-08 17:53:08 -04:00

16 lines
416 B
Nix

{ config, lib, pkgs, ... }:
{
# Use the docker container because it's officially supported.
virtualisation.oci-containers = {
containers = {
home-assistant = {
image = "ghcr.io/home-assistant/home-assistant:2022.9.0";
volumes =
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
extraOptions = [ "--privileged" "--network=host" ];
};
};
};
}