I installed NixOS and then added a user account and now it seems that I am not able to login with root anymore. I did not really bother to remember the password I set for the user I created because I thought I will be able to login with root anyway.
Why is it now not possible to login with root anymore?
Take a look at the
users.mutableUsers option here: NixOS Search - Loading...
According to the documentation:
If set to
false, the contents of the user and group files will simply be replaced on system activation. This also holds for the user passwords; all changed passwords will be reset according to the
users.usersconfiguration on activation.
Perhaps the above corresponds to your situation.
Probably…I assumed root will not be affected but it is clearly stated that the whole file will be replaced