---
# go-task runner file - rest of config in .taskfiles/**.*.yaml
version: "3"

includes:
  sop:
    taskfile: ".taskfiles/sops"
    dir: .taskfiles/sops
  nix:
    taskfile: ".taskfiles/nix"
    dir: "{{.ROOT_DIR}}"
  pre:
    taskfile: ".taskfiles/pre-commit"
    dir: "{{.ROOT_DOR}}"

tasks:
  default:
    silent: true
    cmds:
      - task -l

  lint:
    desc: Run statix lint
    cmds:
      - statix check .

  check:
    desc: Check project files
    cmds:
      - task: lint
      - task: pc-run

  format:
    desc: Check project files
    cmds:
      - nixpkgs-fmt {{.ROOT_DIR}}
