anchor.diff:      <?php
         putenv('TTRSS_PHP_EXECUTABLE=${pkgs.php}/bin/php');
   
  -      putenv('TTRSS_LOCK_DIRECTORY=${lockDir}');
  -      putenv('TTRSS_CACHE_DIR=${cacheDir}');
  -      putenv('TTRSS_ICONS_DIR=${feedIconsDir}');
  -      putenv('TTRSS_ICONS_URL=${feedIconsDir}');
  +      putenv('TTRSS_LOCK_DIRECTORY=${cfg.root}/lock');
  +      putenv('TTRSS_CACHE_DIR=${cfg.root}/cache');
  +      putenv('TTRSS_ICONS_DIR=${cfg.root}/feed-icons');
  +      putenv('TTRSS_ICONS_URL=feed-icons');
         putenv('TTRSS_SELF_URL_PATH=${cfg.selfUrlPath}');
   
         putenv('TTRSS_MYSQL_CHARSET=UTF8');
  
positive.code:   cfg = config.services.tt-rss;
  
    configVersion = 26;
  
    cacheDir = "cache";
    lockDir = "lock";
    feedIconsDir = "feed-icons";
  
    dbPort = if cfg.database.port == null
      then (if cfg.database.type == "pgsql" then 5432 else 3306)
  
negative.code:     };
  
      systemd.tmpfiles.rules = [
        "d '${cfg.root}' 0555 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/lock' 0755 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/cache' 0755 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/cache/upload' 0755 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/cache/images' 0755 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/cache/export' 0755 ${cfg.user} tt_rss - -"
        "d '${cfg.root}/feed-icons' 0755 ${cfg.user} tt_rss - -"
        "L+ '${cfg.root}/www' - - - - ${servedRoot}"
      ];
  
      systemd.services = {
        phpfpm-tt-rss = mkIf (cfg.pool == "${poolName}") {
          restartTriggers = [ servedRoot ];
        };
  
        tt-rss = {
  