This commit is contained in:
2026-02-10 21:40:01 +00:00
parent 1b80778422
commit 5340ec1756
4 changed files with 58 additions and 19 deletions

View File

@@ -0,0 +1,36 @@
{
den,
__findFile,
modules,
...
}:
{
# Basic traefik
modules.services.provides.home-assistant = {
nixos =
{ config, pkgs, ... }:
let
homeAssistantImg = pkgs.dockerTools.pullImage {
imageName = "homeassistant/home-assistant";
imageDigest = "sha256:17441c45ba14560b4ef727ee06aac4d605cf0dc0625fc4f2e043cb2551d72749";
finalImageName = "homeassistant/home-assistant";
finalImageTag = "latest";
sha256 = "sha256-fSQ3luRSFHiWP0qDzsiZsEf/l+wYgyrdicjSayZ61yQ=";
arch = "aarch64";
};
in
{
virtualisation.oci-containers.containers = {
home-assistant = {
image = "homeassistant/home-assistant";
imageFile = homeAssistantImg;
labels = {
"traefik.enable" = "true";
"traefik.http.routers.websecure.service" = "home-assistant";
"traefik.http.routers.websecure.rule" = "Host(`ha.home.doloro.co.uk`)";
};
};
};
};
};
}