terrier: install Home Assistant
This commit is contained in:
parent
9e57effbbb
commit
0479d039b1
4 changed files with 90 additions and 28 deletions
45
machines/terrier/modules/home-assistant.nix
Normal file
45
machines/terrier/modules/home-assistant.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{config, ...}: {
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraComponents = [
|
||||
# Components required to complete the onboarding
|
||||
"analytics"
|
||||
"google_translate"
|
||||
"met"
|
||||
"radio_browser"
|
||||
"shopping_list"
|
||||
# Recommended for fast zlib compression
|
||||
# https://www.home-assistant.io/integrations/isal
|
||||
"isal"
|
||||
|
||||
# Additional components
|
||||
"mobile_app"
|
||||
"nmap_tracker"
|
||||
"cast"
|
||||
];
|
||||
config = {
|
||||
homeassistant = {
|
||||
name = "La Morada";
|
||||
external_url = "https://ha.morada.campares.duckdns.org";
|
||||
};
|
||||
|
||||
http = {
|
||||
trusted_proxies = ["4a6:fed0:59ba:507d:baab:15f3:846d:ead4"];
|
||||
use_x_forwarded_for = true;
|
||||
};
|
||||
|
||||
default_config = {};
|
||||
|
||||
"automation ui" = "!include automations.yaml";
|
||||
"scene ui" = "!include scenes.yaml";
|
||||
"script ui" = "!include scripts.yaml";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"f ${config.services.home-assistant.configDir}/automations.yaml 0755 hass hass"
|
||||
"f ${config.services.home-assistant.configDir}/scenes.yaml 0755 hass hass"
|
||||
"f ${config.services.home-assistant.configDir}/scripts.yaml 0755 hass hass"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue