anchor.diff:          '';
         };
   
  -      openPorts = mkOption {
  -        type = types.bool;
  -        default = true;
  -        description = ''
  -          Whether or not to open the required ports on the firewall.
  -        '';
  -      };
   
         maximumJavaHeapSize = mkOption {
           type = types.nullOr types.int;
  
positive.code:         defaultText = literalExpression ''"''${config.${opt.dataDir}}/unifi-video.pid"'';
          description = "Location of unifi-video pid file.";
        };
  
  };
  
  
negative.code:     groups.unifi-video = {};
    };
  
      networking.firewall = mkIf cfg.openFirewall {
        # https://help.ui.com/hc/en-us/articles/217875218-UniFi-Video-Ports-Used
        allowedTCPPorts = [
          7080 # HTTP portal
  