[Nix-dev] Slim failed to execute login command

_1126 lists at elfsechsundzwanzig.de
Tue Apr 29 17:51:25 CEST 2014


On Tue, Apr 29, 2014 at 04:20:31PM +0200, Eelco Dolstra wrote:
> Is there anything in the journal or in  ~/.xsession-errors?

Yes indeed, there was. Xsession failed while trying to source
/etc/profile which was nonexistent when booting with my new
configuration.

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?

BTW:

I noticed that it was impossible for me to log in because of Slime
ending up in a loop of trying to log in and failing. I had to rebuild
NixOS with autologin = false in order to be able to log into my
machine at all.

Another thing: I noticed that when being in X, like now, I have to
sudo to reboot unlike before. Could this have the same reason?

> 
> Can you show the rest of your X11 / desktop manager configuration?

xserver = {
  autorun = true;
  displayManager = {
    slim = {
      autoLogin = true;
      defaultUser = "_1126";
      enable = true;
    };
 };
}


Thanks a lot and I am happy to provide further information
_1126


More information about the nix-dev mailing list