# Test treefile for apt-ostree compose tree
# This defines a minimal Debian 13+ system with apt-ostree

# OSTree repository configuration
ostree:
  ref: apt-ostree/test/debian/trixie
  repo: /tmp/apt-ostree-test/repo

# Base system (required)
base: debian:trixie

# APT package sources
apt:
  sources:
    - "deb http://deb.debian.org/debian trixie main contrib non-free"
    - "deb http://deb.debian.org/debian trixie-updates main contrib non-free"
    - "deb http://deb.debian.org/debian trixie-security main contrib non-free"

# Packages to install
packages:
  # Base system packages
  - debian-minimal
  - systemd
  - ostree
  - apt
  - dpkg

  # Essential utilities
  - bash
  - coreutils
  - curl
  - wget
  - gnupg
  - ca-certificates

  # For testing purposes
  - vim
  - htop
  - tree

# System configuration
system:
  # Enable systemd services
  services:
    - systemd-networkd
    - systemd-resolved

  # Create basic directory structure
  directories:
    - /etc/apt-ostree
    - /var/lib/apt-ostree
    - /usr/lib/bootc

# Post-installation scripts (optional)
postinstall:
  - echo "apt-ostree test system created successfully"
  - echo "OSTree ref: apt-ostree/test/debian/trixie"
