anchor.diff:                 else "";
   
           in ''
  -          rm -rf "${root}/*"
  -          mkdir -m 755 -p "${root}"
  -          cp -r "${pkgs.tt-rss}/"* "${root}"
  -          ln -sf "${tt-rss-config}" "${root}/config.php"
  -          chown -R "${cfg.user}" "${root}"
  -          chmod -R 755 "${root}"
  +          rm -rf "${cfg.root}/*"
  +          mkdir -m 755 -p "${cfg.root}"
  +          cp -r "${pkgs.tt-rss}/"* "${cfg.root}"
  +          ln -sf "${tt-rss-config}" "${cfg.root}/config.php"
  +          chown -R "${cfg.user}" "${cfg.root}"
  +          chmod -R 755 "${cfg.root}"
           '' + (optionalString (cfg.database.type == "pgsql") ''
   
             exists=$(${callSql "select count(*) > 0 from pg_tables where tableowner = user"} \
  
positive.code: 
    ###### implementation
  
    config = let
      root = "/var/lib/tt-rss";
    in mkIf cfg.enable {
  
      services.phpfpm.poolConfigs = if cfg.pool == "${poolName}" then {
        "${poolName}" = ''
  
negative.code: 
          serviceConfig = {
            User = "${cfg.user}";
            ExecStart = "${pkgs.php}/bin/php ${cfg.root}/update.php --daemon";
            StandardOutput = "syslog";
            StandardError = "syslog";
            PermissionsStartOnly = true;
  