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
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to