{
  "_comment": "hiperiso global configuration. Copy to <data>:/hiperiso/hiperiso.json",

  "control": [
    {
      "HISO_DEFAULT_MENU_MODE": "0",
      "HISO_FILT_DOT_UNDERSCORE_FILE": "1",
      "HISO_SORT_CASE_SENSITIVE": "0",
      "HISO_MAX_SEARCH_LEVEL": "-1",
      "HISO_FILE_FLT_ISO": "0",
      "HISO_FILE_FLT_WIM": "0",
      "HISO_FILE_FLT_VHD": "0",
      "HISO_WIN11_BYPASS_CHECK": "1",
      "HISO_WIN11_BYPASS_NRO": "1",
      "HISO_SECONDARY_BOOT_MENU": "1",
      "HISO_MENU_TIMEOUT": "0",
      "HISO_SECURE_BOOT_POLICY": "0",
      "HISO_DEFAULT_SEARCH_ROOT": "",
      "HISO_DEFAULT_IMAGE": "",
      "HISO_DEFAULT_KBD_LAYOUT": "QWERTY_USA",
      "HISO_MENU_LANGUAGE": "en_US"
    }
  ],

  "control_ext": {
    "default_ram": 2048,
    "default_cpus": 2,
    "default_trace_level": "standard",
    "default_display": "none",
    "default_vga": "none",
    "fallback_no_kvm": true,
    "net_dump": false,
    "timeout": 10
  },

  "theme": {
    "file": "/hiperiso/themes/hiperiso/theme.txt",
    "gfxmode": "1024x768",
    "gfxpayload": "keep",
    "hiperiso_left": "5%",
    "hiperiso_top": "95%",
    "hiperiso_color": "#0000ff"
  },

  "menu_alias": [
    { "iso": "/ISOs/ubuntu-24.04-desktop-amd64.iso", "alias": "Ubuntu 24.04 LTS" },
    { "dir": "/ISOs/Windows", "alias": "Windows ISOs" }
  ],

  "menu_tip": {
    "left": "10%",
    "top": "81%",
    "color": "blue",
    "tips": [
      { "iso": "/ISOs/windows11_23h2_x64.iso", "tip": "Requires TPM + Secure Boot; uses 4 GB RAM" }
    ]
  },

  "menu_class": [
    { "key": "ubuntu", "class": "ubuntu" },
    { "key": "debian", "class": "debian" },
    { "key": "windows", "class": "windows" },
    { "key": "fedora", "class": "fedora" },
    { "key": "arch", "class": "arch" },
    { "key": "kali", "class": "kali" },
    { "key": "freebsd", "class": "freebsd" }
  ],

  "auto_install": [
    {
      "image": "/ISOs/ubuntu-24.04-desktop-amd64.iso",
      "template": ["/hiperiso/auto/ubuntu.seed"],
      "autosel": 1,
      "timeout": 0
    },
    {
      "parent": "/ISOs/RHEL",
      "template": ["/hiperiso/auto/rhel.ks"],
      "autosel": 0
    }
  ],

  "persistence": [
    {
      "image": "/ISOs/ubuntu-24.04-desktop-amd64.iso",
      "backend": ["/hiperiso/persistence/ubuntu.dat"],
      "autosel": 1
    }
  ],

  "dud": [
    {
      "image": "/ISOs/rhel-9.iso",
      "dud": ["/hiperiso/dud/megaraid.dd.gz"]
    }
  ],

  "injection": [
    {
      "image": "/ISOs/windows11.iso",
      "archive": "/hiperiso/injection/win11_drivers.tar.gz"
    }
  ],

  "auto_memdisk": [
    "/ISOs/small_legacy_iso/*.iso"
  ],

  "image_list": [],

  "image_blacklist": [
    "/ISOs/broken.iso"
  ],

  "conf_replace": [
    {
      "iso": "/ISOs/custom_distro.iso",
      "org": "/boot/grub/grub.cfg",
      "new": "/hiperiso/conf_replace/custom_grub.cfg"
    }
  ],

  "password": {
    "bootpwd": "",
    "isopwd": "",
    "menupwd": [
      { "file": "/ISOs/secret.iso", "pwd": "txt#mypassword" }
    ]
  },

  "custom_boot": [
    {
      "file": "/ISOs/special.iso",
      "vcfg": "/hiperiso/custom_boot/special.vcfg"
    }
  ],

  "iso_overrides": {
    "*./windows11*.iso": {
      "ram": 4096,
      "cpus": 4,
      "tpm": true,
      "secure_boot": true,
      "cpu_features": ["vmx"],
      "trace_level": "detailed"
    },
    "*./freebsd*.iso": {
      "ram": 2048,
      "cpu_features": ["vmx"],
      "net_dump": true
    },
    "*./kali*.iso": {
      "ram": 4096,
      "trace_level": "standard"
    },
    "*./memtest*.img": {
      "ram": 512,
      "cpus": 1,
      "trace_level": "none"
    }
  }
}
