anchor.diff:                if cfg.database.type == "pgsql" then ''
                     ${optionalString (cfg.database.password != null) "PGPASSWORD=${cfg.database.password}"} \
                     ${optionalString (cfg.database.passwordFile != null) "PGPASSWORD=$(cat ${cfg.database.passwordFile})"} \
  -                  ${pkgs.sudo}/bin/sudo -u ${cfg.user} ${config.services.postgresql.package}/bin/psql \
  +                  ${config.services.postgresql.package}/bin/psql \
                       -U ${cfg.database.user} \
                       ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} --port ${toString dbPort}"} \
                       -c '${e}' \
                       ${cfg.database.name}''
   
                 else if cfg.database.type == "mysql" then ''
  -                  echo '${e}' | ${pkgs.sudo}/bin/sudo -u ${cfg.user} ${config.services.mysql.package}/bin/mysql \
  +                  echo '${e}' | ${config.services.mysql.package}/bin/mysql \
                       -u ${cfg.database.user} \
                       ${optionalString (cfg.database.password != null) "-p${cfg.database.password}"} \
                       ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} -P ${toString dbPort}"} \
  
positive.code:       ];
      };
  
      services.postgresql = optionalAttrs (cfg.database.type == "pgsql") {
        enable = mkDefault true;
      };
  
      users = optionalAttrs (cfg.user == "tt_rss") {
        users.tt_rss = {
          description = "tt-rss service user";
          isSystemUser = true;
          group = "tt_rss";
        };
        groups.tt_rss = {};
      };
    };
  }
  
negative.code:       };
      };
  
      systemd.tmpfiles.rules = [
        "d '${cfg.root}' 0755 ${cfg.user} tt_rss - -"
        "Z '${cfg.root}' 0755 ${cfg.user} tt_rss - -"
      ];
  
      systemd.services.tt-rss =
        {
  
          description = "Tiny Tiny RSS feeds update daemon";
  
  