Add QEMU to dev environment and update testing workflow

- Add nix-env warning to AGENTS.md
- Include QEMU in flake.nix devShell for testing
- Update Makefile to use nix develop for QEMU commands
- Fix test-usb target to work with nix develop environment
This commit is contained in:
2025-09-15 22:26:02 +02:00
parent 2b797b400c
commit c93b25311c
3 changed files with 7 additions and 2 deletions

View File

@@ -58,3 +58,7 @@ This file provides guidelines for AI coding agents operating within this reposit
## ⚠️ Critical Warnings ## ⚠️ Critical Warnings
- **NEVER RUN `nix-env`** - This can break your Nix environment. Use `nix-shell`, `nix develop`, or declarative approaches instead. - **NEVER RUN `nix-env`** - This can break your Nix environment. Use `nix-shell`, `nix develop`, or declarative approaches instead.
## ⚠️ Critical Warnings
- **NEVER RUN `nix-env`** - This can break your Nix environment. Use `nix-shell`, `nix develop`, or declarative approaches instead.

View File

@@ -59,9 +59,9 @@ flash-usb: build-usb
sync sync
@echo "✅ USB drive ready!" @echo "✅ USB drive ready!"
test-usb: test-usb:
@echo "🧪 Testing USB environment in QEMU..." @echo "🧪 Testing USB environment in QEMU..."
qemu-system-x86_64 \ nix develop --command qemu-system-x86_64 \
-cdrom $(ISO_FILE) \ -cdrom $(ISO_FILE) \
-m 2048 \ -m 2048 \
-enable-kvm \ -enable-kvm \

View File

@@ -65,6 +65,7 @@
markdownlint-cli markdownlint-cli
jq jq
nixpkgs-fmt nixpkgs-fmt
qemu
]; ];
}; };