anchor.diff:  
         phpfpm = lib.mkIf useNginx {
           pools.zoneminder = {
  -          listen = socket;
  +          socketName = "zoneminder";
  +          phpPackage = pkgs.php;
  +          user = "${user}";
  +          group = "${group}";
             phpOptions = ''
               date.timezone = "${config.time.timeZone}"
   
  
positive.code: 
    useCustomDir = cfg.storageDir != null;
  
    socket = "/run/phpfpm/${dirName}.sock";
  
    zms = "/cgi-bin/zms";
  
  
negative.code:             "extension=${e.pkg}/lib/php/extensions/${e.name}.so") phpExtensions)}
            '';
            extraConfig = ''
              listen.owner = ${user}
              listen.group = ${group}
              listen.mode = 0660
  