name: debian-gaming
description: Debian Gaming OS with Steam, gaming tools, and performance optimizations
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"
        - "deb https://deb.debian.org/debian-backports trixie-backports main contrib non-free"
        
  - type: org.osbuild.debian.apt
    options:
      packages:
        # Gaming platforms
        - steam
        - steam-devices
        - lutris
        - wine
        - wine32
        - wine64
        - winetricks
        
        # Gaming tools and performance
        - gamemode
        - gamescope
        - mangohud
        - goverlay
        - libstrangle
        - gamemode-daemon
        
        # Graphics and drivers
        - mesa-utils
        - mesa-vulkan-drivers
        - vulkan-tools
        - vulkan-validationlayers
        - nvidia-driver
        - nvidia-settings
        - nvidia-xconfig
        
        # Audio
        - pulseaudio
        - pulseaudio-utils
        - pavucontrol
        - alsa-utils
        - jackd2
        - qjackctl
        
        # System tools
        - htop
        - iotop
        - nethogs
        - cpufrequtils
        - indicator-cpufreq
        - psensor
        - lm-sensors
        - fancontrol
        
        # Development tools
        - build-essential
        - cmake
        - git
        - python3
        - python3-pip
        - nodejs
        - npm
        
        # Desktop environment
        - gnome
        - gnome-tweaks
        - dconf-editor
        - gnome-shell-extensions
        
        # Utilities
        - curl
        - wget
        - vim
        - nano
        - file-roller
        - gparted
        - synaptic
        - software-center
        
        # Media
        - vlc
        - gimp
        - inkscape
        - audacity
        
        # Network
        - network-manager
        - network-manager-gnome
        - openvpn
        - wireguard
        - ufw
        - gufw
        
      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", "ja_JP.UTF-8"]
      default_locale: en_US.UTF-8
      
  - type: org.osbuild.debian.timezone
    options:
      timezone: UTC
      
  - type: org.osbuild.debian.users
    options:
      users:
        gamer:
          password: "$6$rounds=656000$salt$hashedpassword"
          shell: /bin/bash
          groups: ["sudo", "users", "adm", "video", "audio", "plugdev", "games", "input"]
          uid: 1000
          gid: 1000
          home: /home/gamer
          comment: "Gaming User"
        steam:
          password: "$6$rounds=656000$salt$hashedpassword"
          shell: /bin/bash
          groups: ["users", "video", "audio", "plugdev", "games"]
          uid: 1001
          gid: 1001
          home: /home/steam
          comment: "Steam User"
      default_shell: /bin/bash
      default_home: /home
      
  - type: org.osbuild.ostree
    options:
      repo: /tmp/ostree-repo
      branch: debian-gaming
      subject: "Debian Gaming OS Build"
      body: "Built with particle-os for gaming enthusiasts"
      
  - type: org.osbuild.bootupd
    options:
      partitions: true
      secure_boot: false
      a_b_partitions: true
      
  - type: org.osbuild.qemu
    options:
      formats: ["raw", "qcow2", "vmdk", "vdi"]
      size: "50G"
      filename: "debian-gaming"

output:
  formats: ["raw", "qcow2", "vmdk", "vdi"]
  size: "50G"
  path: "debian-gaming"

metadata:
  author: "particle-os"
  category: "gaming"
  tags: ["steam", "wine", "lutris", "performance", "gaming", "graphics", "audio"]
