Skip to content

Use direnv and nix-direnv to automatically activate nix shell #1765

Closed

Description

@DSharifi

Background

In #1738 we addded support for nix shells in the MPC project with activation through nix develop.

Having to activate the shell manually every time is tedious, and we should make our setup activate the nix environment when opening the shell in the MPC repo directory.

direnv and nix-direnv are great tools for this purpose.

User Story

No response

Acceptance Criteria

Add instructions for using direnv and nix-direnv to the MPC project, such that the nix shell automatically activates in the repository.

Resources & Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions