I can login to xfce only as root. Trying a normal user return to login screen
Well, yeah, your config says you currently donât have any users besides root. You need to add a user for yourself using the config:
# Define a user account. Don't forget to set a password with âpasswdâ.
# users.users.jane = {
# isNormalUser = true;
# extraGroups = [ "wheel" ]; # Enable âsudoâ for the user.
# packages = with pkgs; [
# firefox
# thunderbird
# ];
# };
I added it after installation
[root@nixos:/]# groups m
m : users networkmanager
did you assign them a password?
yes
yes
20 characters
I replied yes to you but it doesnât show I replied to you (forum bug)
Could you check the logs of display-manager.service
after trying to connect?
That should be possible with journalctl -u display-manager.service
.
Thatâs intentional, the forum doesnât show replies to the last comment in the thread as anything special. Whether this is intuitive is a different questionâŚ
does /home/m
exist? (I suppose m is your user)
it seems not
How did you add that user? It doesnât seem to exist in your system configuration as TLATER pointed out.
And what is that users shell according to /etc/passwd
?
What is in your /etc/shells
?
Note you can also use e.g. Ctl+Alt+F4
to switch to a text console, and log in as your user there.
Those are a bit more robust to failure, not sure if theyâll make it through âmissing homeâ but at least they donât need to create xauthority files in your home dir (you can also disable that for lightdm, on a side note).