Common Patterns
Adding a directory to $PATH
This example adds Elixir install scripts to ~/.mix/escripts
:
{ ... }:
{
languages.elixir.enable = true;
enterShell = ''
export PATH="$HOME/.mix/escripts:$PATH"
'';
}
How Can I use Rosetta packages?
It's possible to tell Nix to use Intel packages when using macOS ARM: