Skip to content

Provide more docs - #61

Merged
lucperkins merged 3 commits into
mainfrom
readme-docs
Apr 17, 2026
Merged

lucperkins merged 3 commits into
mainfrom
readme-docs

Conversation

@lucperkins

@lucperkins lucperkins commented Apr 16, 2026 •

Copy link
Copy Markdown
Member

This PR makes the docs for flake schemas much more substantial in this repo. I want to add some docs to d.d.s. as well, but people are likely to expect docs here nonetheless.

Summary by CodeRabbit

  • Documentation
    • Added callout: “flake schemas” are available in Determinate Nix only, with links to announcement and blog.
    • Introduced a “Provided schemas” section clarifying how schemas control nix flake show output.
    • Added guidance for selecting and extending schemas (repo defaults vs. flake-provided) and merging/concatenation patterns.
    • Included multiple examples (repo schemas, local schemas, external flake schemas, standalone schemas) and a concrete diskImages demonstration.
    • Updated links, anchors, and development wording.

@coderabbitai

coderabbitai Bot commented Apr 16, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 364cf3a1-1571-4f3e-a27a-6d5873a5706c

📥 Commits

Reviewing files that changed from the base of the PR and between e5f67c9 and a52f772.

📒 Files selected for processing (1)
  • README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md

📝 Walkthrough

Walkthrough

Updated README.md to add a Determinate Nix availability callout for flake schemas, replace “currently covered output types” with a “Provided schemas” section, add “Using flake schemas” guidance, multiple Nix examples for extending/combining schemas, and several reference link and phrasing updates.

Changes

Cohort / File(s) Summary
Documentation
README.md
Added Determinate Nix availability callout for “flake schemas”; replaced generic wording with a “Provided schemas” section; added “Using flake schemas” guidance and examples showing schema extension/concatenation from this repo, local definitions, other flakes, and independent schemas; demonstrated diskImages appearing under nix flake show --all-systems; updated reference links and minor wording in development/tests/formatting sections.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐇 I hopped through README lines so bright,
Schemas stacked and merging just right,
diskImages showed with a cheerful beep,
Docs now tidy — a carrot to keep! 🥕✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title "Provide more docs" is vague and generic, using non-descriptive language that doesn't convey what documentation was actually added or improved. Consider a more specific title that highlights the main documentation changes, such as "Add flake schemas usage guide and examples" or "Expand flake schemas documentation with usage patterns".
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch readme-docs

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@README.md`:
- Line 54: The sentence starting with lowercase "if" should be capitalized for
proper sentence casing; update the sentence that currently reads "if a given
flake *does* have a `schemas` output, [Determinate Nix][det-nix] uses..." to
begin with "If" so it reads "If a given flake *does* have a `schemas` output,
[Determinate Nix][det-nix] uses..." ensuring the README's user-facing text is
correctly capitalized.
- Line 124: There is a typo in the Nix snippet: replace the incorrect identifier
"nputs" with "inputs" so the line reading "inherit (nputs.other-flake) schemas;"
becomes "inherit (inputs.other-flake) schemas;", ensuring it matches the
function parameter name (inputs) and the referenced flake "other-flake" and
exported symbol "schemas".
- Around line 83-90: The example uses an undefined mkChildren in the inventory
block which will cause an identifier error; fix by adding a definition or import
for mkChildren in the example (e.g., add a let-bound mkChildren helper or show
how to access it via self.lib.mkChildren or import it from flake-schemas) so the
snippet including inventory = output: mkChildren (...) and the use of
builtins.mapAttrs resolves correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e6562b37-de2c-4e05-b66a-e9c7a05a125c

📥 Commits

Reviewing files that changed from the base of the PR and between 15edbee and e5f67c9.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
@lucperkins
lucperkins requested a review from cole-h April 16, 2026 17:02
@cole-h

cole-h commented Apr 16, 2026

Copy link
Copy Markdown
Member

(I didn't actually exercise any of these examples; I assume you did / will before merging)

@lucperkins
lucperkins merged commit b852751 into main Apr 17, 2026
1 check passed
@lucperkins
lucperkins deleted the readme-docs branch April 17, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants