bashrc: updated and abstracted functions to /bin
nix: fixed all options