Skip to content
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

bug: #6529

Open
2 tasks done
danielo515 opened this issue Feb 25, 2025 · 1 comment
Open
2 tasks done

bug: #6529

danielo515 opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@danielo515
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Hello! I recently added direnv to my home-manager configuration, and it creates a direnvrc file that points to a file that does not exist:

nix-darwin on  main [!?] 
› cat ~/.config/direnv/direnvrc
source $HOME/.nix-profile/share/nix-direnv/direnvrc

nix-darwin on  main [!?] 
› cat ~/.nix-profile/share/nix-direnfv
cat: /Users/danielo/.nix-profile/share/nix-direnfv: No such file or directory

Maintainer CC

No response

System information

- system: `"aarch64-darwin"`
 - host os: `Darwin 24.2.0, macOS 15.2`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.26.2`
 - nixpkgs: `/nix/store/4yng3wz3ri8q2g64aysa72j1n3dsa0i2-source`
@danielo515 danielo515 added bug triage Issues or feature request that have not been triaged yet labels Feb 25, 2025
@aguirre-matteo
Copy link

Hi! I'm not a direnv user but could you elaborate a bit more about your issue?
Why are you trying to cat the contents of "~/.nix-profile/share/nix-direnfv" when your config says "~/.nix-profile/share/nix-direnv/direnvrc"? That 'f' between the 'n' and 'v' is counterintuitive.

Also, please share your home-manager config, so the rest of users can know how you enabled direnv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

5 participants