name: debian-desktop
description: Debian Desktop OS with GNOME
base-image: debian:trixie
image-version: "13"

stages:
  - type: org.osbuild.debian.debootstrap
    options:
      suite: trixie
      target: /tmp/rootfs
      arch: amd64
      variant: minbase
      components: ["main", "contrib", "non-free"]
      
  - type: org.osbuild.debian.sources
    options:
      suite: trixie
      mirror: https://deb.debian.org/debian
      components: ["main", "contrib", "non-free"]
      additional_sources:
        - "deb https://deb.debian.org/debian-security trixie-security main contrib non-free"
        
  - type: org.osbuild.debian.apt
    options:
      packages:
        - gnome
        - firefox-esr
        - libreoffice-writer
        - libreoffice-calc
        - libreoffice-impress
        - gimp
        - vlc
        - thunderbird
        - synaptic
        - software-center
        - gnome-software
        - gnome-tweaks
        - dconf-editor
        - gnome-shell-extensions
        - gnome-shell-extension-manager
      update: true
      clean: true
      
  - type: org.osbuild.debian.locale
    options:
      language: en_US.UTF-8
      additional_locales: ["en_GB.UTF-8", "de_DE.UTF-8", "fr_FR.UTF-8"]
      default_locale: en_US.UTF-8
      
  - type: org.osbuild.debian.timezone
    options:
      timezone: UTC
      
  - type: org.osbuild.debian.users
    options:
      users:
        debian:
          password: "$6$rounds=656000$salt$hashedpassword"
          shell: /bin/bash
          groups: ["sudo", "users", "adm", "video", "audio", "plugdev"]
          uid: 1000
          gid: 1000
          home: /home/debian
          comment: "Debian Desktop User"
      default_shell: /bin/bash
      default_home: /home
      
  - type: org.osbuild.ostree
    options:
      repo: /tmp/ostree-repo
      branch: debian-desktop
      subject: "Debian Desktop OS Build"
      body: "Built with particle-os"
      
  - type: org.osbuild.bootupd
    options:
      partitions: true
      secure_boot: false
      a_b_partitions: true
      
  - type: org.osbuild.qemu
    options:
      formats: ["raw", "qcow2", "vmdk"]
      size: "20G"
      filename: "debian-desktop"

output:
  formats: ["raw", "qcow2", "vmdk"]
  size: "20G"
  path: "debian-desktop"

metadata:
  author: "particle-os"
  category: "desktop"
  tags: ["gnome", "office", "multimedia", "productivity"]
