nix-dot-dev / getting-started-devenv-template

Based on nix.dev tutorials, repository template to get you started with Nix.
https://nix.dev
474 stars 27 forks source link

`use nix` or `use_nix` #9

Closed DamienCassou closed 1 year ago

DamienCassou commented 4 years ago

I usually have use_nix in my .envrc files and this works well for me. I installed nix-direnv through a dedicated option in home-manager.

I see that this template has use nix instead of use_nix and this doesn't work for me: a change to the shell.nix file is not reflected in the environment.

domenkozar commented 4 years ago

This came up a few times now so I'll have to add some notes about it.

In general I prefer use nix because it's more reliant - you know you have to reenter the environment on change.

lorri and nix-direnv both have their own issues with reliability (so I've been told, I never tried either) and I think that's inferior to a simple action of knowing when to reload.

PS: use_nix vs use nix naming is ... no comment :)

DamienCassou commented 4 years ago

Domen Kožar notifications@github.com writes:

This came up a few times now so I'll have to add some notes about it.

Can you please explain:

Thank you

-- Damien Cassou

"Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill

domenkozar commented 1 year ago

This template uses https://devenv.sh so .envrc integration should be improved there