feat: Added home-assistant

This commit is contained in:
uttarayan21
2024-11-27 16:47:48 +02:00
parent c7915e9e0f
commit d23ef0f0e4
3 changed files with 65 additions and 1 deletions

View File

@@ -4,5 +4,30 @@
pkgs,
...
}: {
virtualisation.docker.enable = true;
# virtualisation = {
# docker.enable = true;
# podman.enable = true;
# oci-containers = {
# backend = "podman";
# containers.homeassistant = {
# volumes = ["home-assistant:/config"];
# environment.TZ = "Asia/Kolkata";
# image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
# extraOptions = [
# "--network=ha-net"
# ];
# };
# };
# };
# networking.firewall.allowedTCPPorts = [8123];
# environment.systemPackages = with pkgs; [
# docker
# podman
# ];
# services.caddy = {
# enable = true;
# virtualHosts."home.darksailor.dev".extraConfig = ''
# reverse_proxy localhost:8123
# '';
# };
}