name: "jetbrains-{account_name}"
base_image: "ubuntu-24.04"
memory: 8192
vcpus: 4
packages:
  - curl
  - wget
  - git
  - fonts-noto
  - ca-certificates
  - openjdk-21-jdk
  - libgtk-3-0
  - libnss3
apps:
  - intellij-idea-community
services: []
paths:
  shared:
    - host: "~/github"
      guest: "/home/dev/github"
      mode: "rw"
  clone:
    - "~/.config/JetBrains/"
gui: true
spice: true
cloud_init:
  write_files:
    - path: /home/dev/.env
      content: |
        AI_PROXY_URL=http://10.0.0.1:4000
      permissions: "0600"
      owner: "dev:dev"
  runcmd:
    - snap install intellij-idea-community --classic
