[Nix-dev] Slim failed to execute login command
Mathijs Kwik
mathijs at bluescreen303.nl
Wed Apr 30 11:40:14 CEST 2014
Eelco Dolstra <eelco.dolstra at logicblox.com> writes:
> Hi,
>
> On 29/04/14 17:51, _1126 wrote:
>
>> I suspect that the following changes to my configuration are
>> responsible for that:
>>
>> + programs.bash.enable = false;
>> + programs.zsh.enable = true;
>> - users.extraUsers._1126.shell = pkgs.zsh + "/bin/zsh";
>> + users.extraUsers._1126.useDefaultShell = true;
>>
>> Could this be possible?
>
> Right, with bash disabled, /etc/profile doesn't get generated.
>
> I've just committed a change that removes the program.bash.enable option, since
> having it really doesn't make sense - NixOS really depends on bash. If you want
> zsh as the default shell, you should now say:
>
> users.defaultUserShell = "/run/current-system/sw/bin/zsh";
I've been running with this for quite some time:
programs.bash.enable = false;
programs.zsh.enable = true;
environment.etc.profile.text = "";
users.extraUsers.mathijs.useDefaultShell = true;
More information about the nix-dev
mailing list