Use home-assistant container instead
This commit is contained in:
parent
4698badc2e
commit
137bee5f59
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user