athens/modules/home-assistant/default.nix

16 lines
419 B
Nix
Raw Normal View History

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 = {
image = "ghcr.io/home-assistant/home-assistant:2021.7.4";
2021-07-14 22:49:45 -04:00
volumes =
[ "/mnt/config/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
2021-07-14 22:49:45 -04:00
extraOptions = [ "--privileged" "--network=host" ];
};
};
};
}