name: debian-minimal
description: Minimal Debian OS for testing
base-image: debian:trixie-slim
image-version: "13"

stages:
  - type: org.osbuild.debian.debootstrap
    options:
      suite: trixie
      target: /tmp/rootfs
      arch: amd64
      variant: minbase
      
  - type: org.osbuild.debian.apt
    options:
      packages:
        - curl
        - wget
        - vim
        - less
        - locales
        - ca-certificates
        - tzdata
      update: true
      clean: true
      
  - type: org.osbuild.debian.locale
    options:
      language: en_US.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"]
          uid: 1000
          gid: 1000
          home: /home/debian
          comment: "Debian User"
      default_shell: /bin/bash
      default_home: /home
      
  - type: org.osbuild.qemu
    options:
      formats: ["raw", "qcow2"]
      size: "5G"
      filename: "debian-minimal"

output:
  formats: ["raw", "qcow2"]
  size: "5G"
  path: "debian-minimal"

metadata:
  author: "particle-os"
  category: "minimal"
  tags: ["testing", "minimal", "base"]
