https://git.jolheiser.com/infra.git
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 ]; }