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