···129129130130[microvm](https://den.oeiuwq.com/tutorials/microvm): MicroVM runnable-pkg and guests. custom ctx-pipeline.
131131132132+[flake-parts-modules](https://den.oeiuwq.com/tutorials/flake-parts-modules): Den forward classes for third-party perSystem submodules: nix-unit on aspects, mightyiam/files generation, devshells, etc.
133133+132134[example](https://den.oeiuwq.com/tutorials/example): cross-platform
133135134136[ci](https://den.oeiuwq.com/tutorials/ci): Each feature tested as code examples
···11+---
22+title: "Template: Flake Parts Modules"
33+description: Den Forwarding classes for third-party flake-parts perSystem submodules.
44+---
55+66+The `flake-parts-modules` template demonstrates how to use Den aspects
77+that propagate custom classes into third-party flake-parts `perSystem` modules.
88+99+For demo purposes, the example showcases:
1010+1111+- `perSystem.packages`: How to expose flake-parts packages.
1212+- `numtide/devshell`: A default devshell extensible by any aspect.
1313+- `mightyiam/files`: Generates README from nix code.
1414+- `nix-community/nix-unit`: Write tests directly on aspects.
1515+1616+## Initialize
1717+1818+```console
1919+mkdir example && cd example
2020+nix flake init -t github:vic/den#flake-parts-modules
2121+nix flake update den
2222+nix flake show
2323+nix flake check -L
2424+```
2525+2626+## Project Structure
2727+2828+```
2929+flake.nix
3030+modules/
3131+ perSystem-forward.nix # Custom den.ctx and perSystem forwarding class.
3232+ custom-classes.nix # Registers several classes for each third-party
3333+ den.nix # Example of aspects using those classes
3434+```
3535+3636+Key points:
3737+- New `perSystem` classes are registered via a context transition, from any module.
3838+3939+## Next Steps
4040+4141+- Read [flake.parts Documentation](https://flake.parts) for more `perSystem` modules.
+3
docs/src/content/docs/tutorials/overview.md
···1919| [**noflake**](/tutorials/noflake/) | Stable Nix, no flakes | ✗ | ✗ | ✗ |
2020| [**nvf-standalone**](/tutorials/nvf-standalone/) | Den based NVF without NixOS | ✓ | ✗ | ✗ |
2121| [**microvm**](/tutorials/microvm/) | MicroVM host and guests | ✓ | ✗ | ✗ |
2222+| [**flake-parts-modules**](/tutorials/flake-parts-modules/) | flake-parts perSystem submodules | ✓ | ✓ | ✗ |
2223| [**bogus**](/tutorials/bogus/) | Bug reproduction | ✓ | ✓ | ✓ |
2324| [**ci**](/tutorials/ci/) | Den's own test suite | ✓ | ✓ | ✓ |
2425···5657- **example** — Namespaces, angle brackets, cross-platform (NixOS + Darwin), providers
5758- **noflake** — Using Den with npins instead of flakes
5859- **microvm** — Demostrates Den extensibility showcasing MicroVM virtualization.
6060+- **nvf-standalone** — Demostrates Den outside the NixOS/nix-Darwin framework.
6161+- **flake-parts-modules** — Integrate Den aspects with third-party flake-parts perSystem submodules.
5962- **bogus** — Creating minimal reproductions for bug reports with nix-unit
6063- **ci** — Comprehensive tests covering every Den feature (your best learning resource)
6164