docs: add mermaid diagram

This commit is contained in:
Jay Looney 2025-06-17 17:06:15 -05:00
parent 4a8c953223
commit eb24433294

View file

@ -14,6 +14,15 @@ It's designed to be **secure, composable, and automated** using modern Nix tooli
- Secrets managed via `sops-nix`
- Deployable with `nixos-rebuild` (and soon `deploy-rs` or `nixos-anywhere`)
```mermaid
graph TD
flake["flake.nix"] --> mkSystem["lib/mkSystem"]
mkSystem --> hosts["hosts/{hostname}/default.nix"]
mkSystem --> users_default["users/{username}/default.nix"]
mkSystem -.->|if user home-manager| users_home["users/{username}/home.nix"]
hosts --> nixosMods@{ shape: docs, label: "modules/nixos/*"}
users_home --> homeMods@{ shape: docs, label: "modules/home/*"}
```
## How to use this? (Deployment)