fix: Update flake.nix and Makefile for linting tools and opencode target

🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
2025-08-13 12:18:13 +02:00
parent 2fc3724083
commit 082f4ea9c7
2 changed files with 12 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
-include .env -include .env
export export
.PHONY: help deploy-cloud build-usb flash-usb local-vm-run clean status destroy-cloud opencode .PHONY: help deploy-cloud build-usb flash-usb local-vm-run clean status destroy-cloud opencode lint
DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es) DOMAIN := $(or $(WORKSHOP_DOMAIN),codecrispi.es)
USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX) USB_DEVICE := $(or $(USB_DEVICE),/dev/sdX)
@@ -102,3 +102,12 @@ clean:
opencode: opencode:
@echo "Starting opencode in Nix dev shell..." @echo "Starting opencode in Nix dev shell..."
nix develop --command opencode nix develop --command opencode
lint:
@echo "Linting Markdown files..."
@markdownlint-cli . || true
@echo "Linting JSON files..."
@find . -type f -name "*.json" -print0 | xargs -0 -I {} bash -c 'jq . "{}" >/dev/null || (echo "JSON lint error in {}" && exit 1)'
@echo "Linting Nix files..."
@nixpkgs-fmt . || true
@echo "Linting complete."

View File

@@ -137,8 +137,8 @@
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
markdownlint markdownlint-cli
jsonlint jq
nixpkgs-fmt nixpkgs-fmt
]; ];
}; };