Use home-assistant container instead

This commit is contained in:
Jordan Holt 2023-12-18 23:26:06 +00:00
parent 4698badc2e
commit 137bee5f59
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -53,41 +53,16 @@
systemWide = true; systemWide = true;
}; };
services.home-assistant = { virtualisation.oci-containers = {
enable = true; backend = "podman";
extraComponents = [ containers.homeassistant = {
"api" volumes = [ "home-assistant:/config" ];
"alert" environment.TZ = config.time.timeZone;
"auth" image = "ghcr.io/home-assistant/home-assistant:stable";
"backup" extraOptions = [
"command_line" "--network=host"
"default_config" "--device=/dev/ttyUSB0:/dev/ttyUSB0"
"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;
};
}; };
}; };
@ -112,7 +87,7 @@
enable = true; enable = true;
dataDir = "/var/lib/zigbee2mqtt"; dataDir = "/var/lib/zigbee2mqtt";
settings = { settings = {
homeassistant = config.services.home-assistant.enable; homeassistant = true;
frontend = true; frontend = true;
device_options = { device_options = {
retain = true; retain = true;