Home Assistant: Difference between revisions

imported>Mweinelt
imported>Mweinelt
Line 68: Line 68:


Remember to make backups of your database, for Home Assistant is becoming more and more stateful and has moved away from a completely declarative YAML configuration for new and core components.
Remember to make backups of your database, for Home Assistant is becoming more and more stateful and has moved away from a completely declarative YAML configuration for new and core components.
Also note that when overridding 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>
Line 73: Line 75:
     package = (pkgs.home-assistant.override {
     package = (pkgs.home-assistant.override {
       extraPackages = py: with py; [ psycopg2 ];
       extraPackages = py: with py; [ psycopg2 ];
    }).overrideAttrs (oldAttrs: {
      doInstallCheck = false;
     });
     });
     config.recorder.db_url = "postgresql://@/hass";
     config.recorder.db_url = "postgresql://@/hass";