I’d like to use Bash as users’ default shell. What should I specify for users.defaultUserShell
: bash
or bashInteractive
? Why does a separate bashInteractive
even exist?
1 Like
Just leave it at it’s default, that’s already bash IIRC.
2 Likes
IIUC:
- it’s beneficial (for closure-size reasons? IDK if it also affects initialization/run time) to have a smaller bash for scripting/build/test uses
- for historical reasons, the full-featured interactive bash was added to nixpkgs after the basic build, so it’s the one with the more specific name (there’s an incomplete effort to flip this around, see treewide: bash -> bashNonInteractive & bashInteractive -> bash by Artturin · Pull Request #151227 · NixOS/nixpkgs · GitHub)
2 Likes