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