Home

infra @cdca0f49422a95491641979bbc760df5536a1c82 - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / jasmine / services / homeassistant.nix
- raw -
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, ... }:
let
  enable = true;
in
lib.mkIf enable {
  virtualisation.oci-containers = {
    backend = "podman";
    containers.homeassistant = {
      volumes = [ "home-assistant:/config" ];
      environment.TZ = "America/Chicago";
      image = "ghcr.io/home-assistant/home-assistant:stable";
      extraOptions = [
        "--network=host"
      ];
    };
  };
  networking.firewall.allowedTCPPorts = [
    4001
    8123
  ];
}