Home Assistant: Difference between revisions

Hexa (talk | contribs)
Hexa (talk | contribs)
Using PostgreSQL: Use the module to inject the dependency
Line 285: Line 285:
Also note that when overriding the package you may want to disable install checks as they tend to take a long time to complete.
Also note that when overriding the package you may want to disable install checks as they tend to take a long time to complete.


<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
   services.home-assistant = {
   services.home-assistant = {
     package = (pkgs.home-assistant.override {
     extraPackages = ps: with ps; [ psycopg2 ];
      extraPackages = py: with py; [ psycopg2 ];
    }).overrideAttrs (oldAttrs: {
      doInstallCheck = false;
    });
     config.recorder.db_url = "postgresql://@/hass";
     config.recorder.db_url = "postgresql://@/hass";
   };
   };
Line 303: Line 299:
     }];
     }];
   };
   };
</syntaxHighlight>
</syntaxhighlight>


== Updating Zigbee Firmware over the air ==
== Updating Zigbee Firmware over the air ==