Validate Infra Changes

  • Use this as the pre-PR validation index. Deeper workflows live in the linked runbooks.

  • Docs and wiki

    • Build the wiki:

    • bun run --cwd apps/wiki build
    • Check Logseq page links manually in the generated site when adding or renaming pages.

  • Nix and NixOS

    • Full flake check:

    • nix flake check
    • Host build:

    • nix build .#nixosConfigurations.<hostname>.config.system.build.toplevel --no-link
  • Kubernetes

  • Terraform

    • From the changed root:

    • terraform init -backend=false
      terraform validate
    • Format:

    • terraform fmt -recursive
  • Secrets safety

    • Do not put decrypted SOPS values, API tokens, passwords, private keys, or one-time tokens in docs, PR comments, logs, or screenshots.

    • A crude docs scan before publishing sensitive-adjacent runbooks:

    • rg -n "op item|--reveal|password|token|private key|BEGIN .*KEY" docs/pages
  • Tooling

    • Prefer mise for portable validation tooling:

    • mise install
    • Use the Nix dev shell for NixOS-specific builds and formatters.

Linked references 1

Runbooks

Runbooks/Validate Infra Changes — validation commands by change area