WIP home-assistant on loki

This commit is contained in:
Filippo Berto 2022-10-13 00:19:18 +02:00
parent 7a8e269141
commit cfd245c3e4
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -386,16 +386,75 @@ with lib; {
# virtualbox.host.enable = true;
oci-containers.containers = {
hass = {
image = "ghcr.io/home-assistant/home-assistant:stable";
environment = { TZ = "Europe/Rome"; };
extraOptions = [ "--privileged" "--network=host" "--pull=always" ];
ports = [ "8123:8123" ];
volumes = [ "/var/lib/hass:/config" "/mnt/raid0/condiviso:/media" ];
};
# hass = {
# image = "ghcr.io/home-assistant/home-assistant:stable";
# environment = { TZ = "Europe/Rome"; };
# extraOptions = [ "--privileged" "--network=host" "--pull=always" ];
# ports = [ "8123:8123" ];
# volumes = [ "/var/lib/hass:/config" "/mnt/raid0/condiviso:/media" ];
# };
};
};
services.home-assistant = {
enable = true;
openFirewall = true;
extraComponents = [
# "accuweather"
"alert"
"analytics"
"automation"
"bayesian"
"binary_sensor"
"blueprint"
# "bluetooth_le_tracker"
# "bluetooth_tracker"
"button"
"camera"
# "cast"
# "citybikes"
"conf"
"configurator"
"coronavirus"
"counter"
"cover"
"default_config"
"derivative"
"device_automation"
"device_sun_light_trigger"
"device_tracker"
"dhcp"
# "dlib_face_detect"
# "dlib_face_identify"
# "esphome"
# "flux"
"group"
"hassio"
"input_boolean"
"input_button"
"input_datetime"
"input_number"
"input_select"
"input_text"
# "meteoalarm"
"ping"
"proximity"
"random"
"schedule"
"script"
"tcp"
"template"
"threshold"
"timer"
"tod" # times of the day
"trend"
"upnp"
"workday"
"zeroconf"
# "zoneminder"
];
};
security.sudo.extraConfig = ''
Defaults pwfeedback
'';