Skip to content

Documented Layers, created example layer and template for it.#8

Merged
vic merged 1 commit intomainfrom
vic/jj-change-xupnmstlzqyw
Jul 1, 2025
Merged

Documented Layers, created example layer and template for it.#8
vic merged 1 commit intomainfrom
vic/jj-change-xupnmstlzqyw

Conversation

@vic
Copy link
Copy Markdown
Owner

@vic vic commented Jul 1, 2025

  • Layers are now automatically discovered from directories in ./dev/layers.

  • Added an example vix layer which imports features from vic/vix repo.

  • Added an example vix template that includes said layer to test it all.

- Layers are now automatically discovered from directories in
  ./dev/layers.

- Added an example vix layer which imports features from vic/vix repo.

- Added an example vix template that includes said layer to test it all.
Copilot AI review requested due to automatic review settings July 1, 2025 02:49

This comment was marked as outdated.

@vic vic self-assigned this Jul 1, 2025
@vic vic requested a review from Copilot July 1, 2025 02:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for automatically discovering layer modules from ./dev/layers, provides an example “vix” layer and its corresponding flake template, and updates documentation to guide users through setup.

  • Introduces discoverLayers logic in dev/layers/options.nix and wiring in dev/modules/discovered.nix to auto-generate a Nix module for each layer directory.
  • Adds a “vix” example layer under dev/layers/vix along with a template in templates/vix.
  • Updates the Getting-Started and Dendrix-Layers guides in dev/book to reflect the new layer structure.

Reviewed Changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
templates/vix/modules/layers.nix New import module for the vix example layer
templates/vix/modules/default.nix Default flake-parts modules for vix template
templates/vix/flake.nix Flake definition wiring dendrix, import-tree, etc.
templates/default/modules/layers.nix Disabled the vix import in the default template
dev/modules/discovered.nix Pipeline to generate a layers.nix module for each layer
dev/layers/vix/modules/default.nix Example layer module for “vix”
dev/layers/vix/README.md Placeholder README for the vix layer
dev/layers/options.nix discoverLayers option and type definition
dev/default.nix Switched from ad-hoc match to layers/options.nix
dev/book/src/Getting-Started.md Usage instructions updated for dendrix input & layers
dev/book/src/Dendrix-Layers.md Layer creation guide updated to new directory layout
Comments suppressed due to low confidence (2)

dev/layers/vix/README.md:1

  • The README is just a header; please expand it with usage details, input requirements, and examples to match the guidance in Dendrix-Layers.md.
# vix layer.

dev/layers/options.nix:11

  • The discoverLayers function is a key new feature for auto-discovery; consider adding unit or integration tests to validate its behavior with different directory structures.
  discoverLayers = lib.pipe ./. [

@vic vic merged commit d850fd0 into main Jul 1, 2025
1 check passed
@vic vic deleted the vic/jj-change-xupnmstlzqyw branch July 1, 2025 03:03
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