From 04cc4d20c473bebc130df329b7e9f59872024e98 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 31 Dec 2024 06:55:03 +0000 Subject: [PATCH] Update again to latest stable home-assistant Fix issue with HACS integrations not installing dependencies, is a temporary workaround that should hopefully be fixed in a future home-assistant version --- system/default.nix | 10 +++++++++- system/services/home-assistant.nix | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/system/default.nix b/system/default.nix index 1bc545ed..aaa50926 100644 --- a/system/default.nix +++ b/system/default.nix @@ -117,6 +117,7 @@ "input" "uinput" "dialout" + "podman" "gamemode" ]; initialHashedPassword = "$y$j9T$tHIPQt09Kf3KH2eIRze3g/$2mwSlcq27DTGvHNPJ5EP9/1CfL3bXP0F6oS/Vuffmn3"; @@ -191,7 +192,14 @@ }; }; security.rtkit.enable = true; - virtualisation.podman.enable = true; + virtualisation = { + containers.enable = true; + podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; + }; + }; location = { latitude = 51.7; longitude = -1.2; diff --git a/system/services/home-assistant.nix b/system/services/home-assistant.nix index 3c9564ca..ff226733 100644 --- a/system/services/home-assistant.nix +++ b/system/services/home-assistant.nix @@ -7,9 +7,10 @@ "/var/lib/home-assistant:/config" "/run/dbus:/run/dbus:ro" "/var/lib/syncthing/Music:/music" + "/tmp:/.dockerenv" # TEMP FIX FOR CONTAINER CHECKS ]; environment.TZ = config.time.timeZone; - image = "ghcr.io/home-assistant/home-assistant:stable"; + image = "ghcr.io/home-assistant/home-assistant@sha256:db0f344d5126bfedd7bf18e0bfb8249a9a5e6785e2f6cb3728edbd393fff1981"; # 2024-12-20T10:54:13.805911135Z extraOptions = [ "--network=host" ]; }; };