Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Jan 5, 2026

Summary

  • Add Nix installation command using experimental installer
  • Add instructions for enabling flakes if not already enabled
  • Clarify direnv activation (use existing .envrc)
  • Link to flake.nix for reference
  • Reorganise useful commands into separate section

Test plan

  • Verify README renders correctly on GitHub

Summary by cubic

Streamlined the README’s Nix setup to make onboarding faster and the dev environment easier to activate. Added an install command (experimental installer), steps to enable flakes, clarified direnv activation, linked to flake.nix, and grouped useful commands.

Written for commit 05ddd3f. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 5, 2026 17:39
- Add Nix installation command using experimental installer
- Add instructions for enabling flakes if not already enabled
- Clarify direnv activation (use existing .envrc)
- Link to flake.nix for reference
- Reorganise useful commands into separate section
@ryoppippi ryoppippi force-pushed the docs/nix-setup-instructions branch from ccc0ece to 05ddd3f Compare January 5, 2026 17:39
@ryoppippi ryoppippi merged commit 2d6f6c2 into main Jan 5, 2026
@ryoppippi ryoppippi deleted the docs/nix-setup-instructions branch January 5, 2026 17:40
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
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 improves the Nix development environment setup documentation by restructuring it into clear, sequential sections with explicit installation and activation steps.

  • Adds explicit Nix installation instructions using the experimental installer
  • Reorganizes content into logical subsections: Installation, Activation, and Useful Commands
  • Clarifies direnv usage and adds reference to flake.nix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

nix flake check
```bash
# Automatic activation with direnv (recommended)
direnv allow
Copy link

Copilot AI Jan 5, 2026

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.

Copilot uses AI. Check for mistakes.
Comment on lines +346 to +347
curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \
sh -s -- install
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

The experimental installer URL may not be the most appropriate choice for documentation aimed at general users. The experimental installer is intended for testing new features and may have stability issues. Consider using the official stable installer instead: sh <(curl -L https://nixos.org/nix/install) --daemon or directing users to the official installation page at https://nixos.org/download.html for platform-specific instructions.

Copilot uses AI. Check for mistakes.
```bash
# Enter development environment (auto-installs dependencies and git hooks)
nix develop
# Install Nix with flakes enabled (if not already installed)
Copy link

Copilot AI Jan 5, 2026

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.

Suggested change
# Install Nix with flakes enabled (if not already installed)
# Install Nix with flakes enabled

Copilot uses AI. Check for mistakes.
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
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

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

The instruction to enable flakes by appending to nix.conf could result in duplicate entries if run multiple times. Consider using a command that checks for existing configuration or overwrites safely, or add a note to users that they should only run this once or check if flakes are already enabled first.

Suggested change
# 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 uses AI. Check for mistakes.
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