[Nix-dev] [NixOS/nixos] 0f6e9b: Unconditionally add ~/bin to $PATH

Marc Weber marco-oweber at gmx.de
Wed Jun 19 15:27:32 CEST 2013


https://github.com/NixOS/nixos/pull/138

It allows to define

  bash.availableFeatures.user_bin.env_code = "PATH=~/bin:$PATH";

in a configuration.nix file - and users can opt out from such snippets.

I don't want to say the patch is perfect, but eventually its worth
thinking about such "composable bash/zsh env"

# opting out would be done by adding this to a .bashrc:

  declare -A  DID_NIX_BASH_FEATURES
  DID_NIX_BASH_FEATURES['suer_bin'] = 1

There is no support for running something "first" or "last" which would
be useful in this particular case.

Marc  Weber


More information about the nix-dev mailing list