Revert "Use home-assistant container instead"

This reverts commit 137bee5f59d47cdd0f6ee1aaaae60dd6bf6864c2.
This commit is contained in:
Jordan Holt 2024-01-06 10:29:32 +00:00
parent 5216645bd5
commit c767171fad
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -88,16 +88,41 @@
pulse.enable = true; pulse.enable = true;
}; };
virtualisation.oci-containers = { services.home-assistant = {
backend = "podman"; enable = true;
containers.homeassistant = { extraComponents = [
volumes = [ "home-assistant:/config" ]; "api"
environment.TZ = config.time.timeZone; "alert"
image = "ghcr.io/home-assistant/home-assistant:stable"; "auth"
extraOptions = [ "backup"
"--network=host" "command_line"
"--device=/dev/ttyUSB0:/dev/ttyUSB0" "default_config"
"homekit_controller"
"homekit"
"http"
"icloud"
"jellyfin"
"metoffice"
"mqtt"
"onkyo"
"ping"
"proximity"
"radio_browser"
"scrape"
"sensor"
]; ];
config = {
default_config = {};
backup = {};
homeassistant = {
name = "Home";
unit_system = "metric";
temperature_unit = "C";
};
mqtt = {};
recorder = {
purge_keep_days = 365;
};
}; };
}; };
@ -122,7 +147,7 @@
enable = true; enable = true;
dataDir = "/var/lib/zigbee2mqtt"; dataDir = "/var/lib/zigbee2mqtt";
settings = { settings = {
homeassistant = true; homeassistant = config.services.home-assistant.enable;
frontend = true; frontend = true;
device_options = { device_options = {
retain = true; retain = true;