athens/modules/home-assistant/default.nix
2021-12-17 21:47:14 -05:00

16 lines
417 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:2021.12.3";
volumes =
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
extraOptions = [ "--privileged" "--network=host" ];
};
};
};
}