anchor.diff:        } ];
       };
   
  +    services.postgresql = {
  +      enable = true;
  +      ensureDatabases = [ "hass" ];
  +      ensureUsers = [{
  +        name = "hass";
  +        ensurePermissions = {
  +          "DATABASE hass" = "ALL PRIVILEGES";
  +        };
  +      }];
  +    };
  +
       services.home-assistant = {
         enable = true;
         inherit configDir;
  
positive.code:           longitude = "0.0";
            elevation = 0;
          };
  
          # we can't load default_config, because the updater requires
          # network access and would cause an error, so load frontend
  
negative.code:         "wake_on_lan"
        ];
  
        # test extra package passing from the module
        extraPackages = python3Packages: with python3Packages; [
          psycopg2
        ];
  
        config = {
          homeassistant = {
            name = "Home";
  