{
  "version": 5,
  "script": {
    "version": "0.1.0",
    "changeLog": "Auto-generated draft from TrueNAS steam-headless 1.1.9"
  },
  "installation_questions": [
    {
      "question": "User password",
      "type": "password",
      "key": "user_password",
      "required": true
    }
  ],
  "requirements": {
    "locations": ["ApplicationsPerformance"],
    "specifications": ["2CORE"],
    "permissions": ["READ_WRITE_LOCATIONS"],
    "ports": [31100]
  },
  "ensure_directories_exists": [
    {"path": "$LOCATION(ApplicationsPerformance)"},
    {"path": "$LOCATION(ApplicationsPerformance)/steam-headless"},
    {
      "path": "$LOCATION(ApplicationsPerformance)/steam-headless/home",
      "snapshot": {"id": "home"}
    },
    {
      "path": "$LOCATION(ApplicationsPerformance)/steam-headless/games",
      "snapshot": {"id": "games"}
    },
    {
      "path": "$LOCATION(ApplicationsPerformance)/steam-headless/x11_socket",
      "snapshot": {"id": "x11_socket"}
    },
    {
      "path": "$LOCATION(ApplicationsPerformance)/steam-headless/pulse_socket",
      "snapshot": {"id": "pulse_socket"}
    }
  ],
  "app_values": {
    "steam_headless": {"user_password": "$QUESTION(user_password)"},
    "storage": {
      "home": "$HOST_PATH($LOCATION(ApplicationsPerformance)/steam-headless/home)",
      "games": "$HOST_PATH($LOCATION(ApplicationsPerformance)/steam-headless/games)",
      "x11_socket": "$HOST_PATH($LOCATION(ApplicationsPerformance)/steam-headless/x11_socket)",
      "pulse_socket": "$HOST_PATH($LOCATION(ApplicationsPerformance)/steam-headless/pulse_socket)"
    },
    "network": {
      "vnc_port": {"bind_mode": "published", "port_number": 31100}
    },
    "resources": {"limits": {"cpus": 2, "memory": "$MEMORY(10%, 4096)"}}
  }
}
