Home Assistant

From NixOS Wiki
Revision as of 08:49, 30 May 2020 by imported>Mic92 (Created page with "[https://www.home-assistant.io/ Home Assistant] is an open source home automation software that puts local control and privacy first. Powered by a worldwide community of tinke...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home Assistant is an open source home automation software that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts.

    1. Home-assistant with nginx as a reverse proxy

If you run a public home-assistant instance it is a good idea to enable ssl. The following configuration generates a certificate using letsencrypt:

  services.nginx = {
    virtualHosts."hass.your-domain.tld" = {
      addSSL = true;
      enableACME = true;
      extraConfig = ''
        proxy_buffering off;
      '';
      locations."/".extraConfig = ''
        proxy_pass http://127.0.0.1:8123;
        proxy_set_header Host $host;
        proxy_redirect http:// https://;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
      '';
    };
  };
    1. Add custom lovelace modules

This pull request describes how to add custom lovelace modules