3 ms·
> My copy of NixOS had no password on the root user by default That isn't the default behavior for NixOS. From the docs[1]: > If set to null (default) this us
by soraminazuki 6y ago
> My copy of NixOS had no password on the root user by default
That isn't the default behavior for NixOS. From the docs[1]:
> If set to null (default) this user will not be able to log in using a password (i.e. via login command).
The installer also asked for a root password when I installed NixOS years ago and it still does[2].
[1]: https://search.nixos.org/options?channel=20.09&show=users.extraUsers.%3Cname%3E.hashedPassword&from=0&size=50&sort=relevance&query=users.extrausers https://search.nixos.org/options?channel=20.09&show=users.ex...
[2]: https://github.com/NixOS/nixpkgs/blob/a3a531071598cad0c604850ad68ea9bb7573612a/nixos/modules/installer/tools/nixos-install.sh#L200-L215 https://github.com/NixOS/nixpkgs/blob/a3a531071598cad0c60485...