nix-config/hosts/franz/arion/smarthome/arion-compose.nix

34 lines
972 B
Nix
Raw Normal View History

2024-03-07 17:03:33 +01:00
{pkgs, ...}: {
project.name = "smarthome";
networks.dmz = {
name = "dmz";
external = true;
};
services = {
homeassistant.service = {
2024-03-31 22:05:29 +02:00
image = "ghcr.io/home-assistant/home-assistant:2024.3.3";
2024-03-07 17:03:33 +01:00
container_name = "homeassistant";
privileged = true;
labels = {
"traefik.enable" = "true";
"traefik.http.routers.homeassistant.entrypoints" = "websecure";
"traefik.http.routers.homeassistant.rule" = "Host(`home.ghoscht.com`)";
"traefik.http.routers.homeassistant.tls" = "true";
"traefik.http.routers.homeassistant.tls.certresolver" = "letsencrypt";
"traefik.http.services.homeassistant.loadbalancer.server.port" = "8123";
};
volumes = [
2024-03-31 22:05:29 +02:00
"/storage/dataset/docker/smarthome/homeassistant_data:/config"
2024-03-07 17:03:33 +01:00
"/etc/localtime:/etc/localtime:ro"
"/run/dbus:/run/dbus:ro"
];
restart = "always";
networks = [
"dmz"
];
};
};
}