-
Notifications
You must be signed in to change notification settings - Fork 0
docs(readme): improve Nix development environment setup instructions #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -337,20 +337,27 @@ For more examples, check out the [examples/](examples/) directory: | |||||||||||||||
|
|
||||||||||||||||
| ### Using Nix (Recommended) | ||||||||||||||||
|
|
||||||||||||||||
| [Nix](https://nixos.org/) with flakes provides a consistent development environment: | ||||||||||||||||
| This project includes a Nix flake for reproducible development environments. All development tools are defined in [flake.nix](./flake.nix) and provided via Nix. | ||||||||||||||||
|
|
||||||||||||||||
| #### Installing Nix | ||||||||||||||||
|
|
||||||||||||||||
| ```bash | ||||||||||||||||
| # Enter development environment (auto-installs dependencies and git hooks) | ||||||||||||||||
| nix develop | ||||||||||||||||
| # Install Nix with flakes enabled (if not already installed) | ||||||||||||||||
| curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \ | ||||||||||||||||
| sh -s -- install | ||||||||||||||||
|
Comment on lines
+346
to
+347
|
||||||||||||||||
|
|
||||||||||||||||
| # Or with direnv (recommended for automatic activation) | ||||||||||||||||
| direnv allow | ||||||||||||||||
| # If flakes are not enabled, enable them with: | ||||||||||||||||
| mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf | ||||||||||||||||
|
Comment on lines
+349
to
+350
|
||||||||||||||||
| # If flakes are not enabled, enable them with: | |
| mkdir -p ~/.config/nix && echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf | |
| # If flakes are not enabled, enable them (idempotent): | |
| mkdir -p ~/.config/nix | |
| if ! grep -q "experimental-features .*flakes" ~/.config/nix/nix.conf 2>/dev/null; then | |
| echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf | |
| fi |
Copilot
AI
Jan 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says "use existing .envrc" in the PR description, but the documentation doesn't clarify that an .envrc file already exists in the repository. Users unfamiliar with direnv might not understand what they're allowing. Consider adding a brief note that this activates the existing .envrc configuration in the repository.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The conditional check "if not already installed" in the comment contradicts the instruction itself. The experimental installer command shown will attempt to install Nix unconditionally and will fail if Nix is already installed. Consider either removing the parenthetical "(if not already installed)" or adding instructions for users to check if Nix is already installed first.