Nix configuration for setting bin/sh symlink?

I would like to configure the sh symlink to point to a lighter shell eg dash. How would I do that in /etc/nixos/configuration.nix?

It’s a hidden option but environment.binsh does what you want:

1 Like

Okay I guess I won’t be doing that lol.

I wonder if there is a lot of non-compatible code or if it could be possible to make dash (or another very fast shell) the default… There are various discussions on how to make nixpkgs faster and this could potentially be a good performance booster.