WIP home-assistant on loki
This commit is contained in:
parent
7a8e269141
commit
cfd245c3e4
1 changed files with 66 additions and 7 deletions
|
|
@ -386,16 +386,75 @@ with lib; {
|
||||||
# virtualbox.host.enable = true;
|
# virtualbox.host.enable = true;
|
||||||
|
|
||||||
oci-containers.containers = {
|
oci-containers.containers = {
|
||||||
hass = {
|
# hass = {
|
||||||
image = "ghcr.io/home-assistant/home-assistant:stable";
|
# image = "ghcr.io/home-assistant/home-assistant:stable";
|
||||||
environment = { TZ = "Europe/Rome"; };
|
# environment = { TZ = "Europe/Rome"; };
|
||||||
extraOptions = [ "--privileged" "--network=host" "--pull=always" ];
|
# extraOptions = [ "--privileged" "--network=host" "--pull=always" ];
|
||||||
ports = [ "8123:8123" ];
|
# ports = [ "8123:8123" ];
|
||||||
volumes = [ "/var/lib/hass:/config" "/mnt/raid0/condiviso:/media" ];
|
# 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 = ''
|
security.sudo.extraConfig = ''
|
||||||
Defaults pwfeedback
|
Defaults pwfeedback
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue