NixOS:nixos-rebuild build-vm: Difference between revisions

imported>Truh
m Fix quotes
imported>Liberatys
mNo edit summary
Line 5: Line 5:
</code>
</code>


You will that you will not be able to login to this virtual machine, as the passwords are not carried over to the virtual machine you build.
You you will not be able to login to this virtual machine, as the passwords are not carried over to the virtual machine you build.


If you have a user called nixosvmtest for example , you can add
If you have a user called nixosvmtest for example, you can add


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 15: Line 15:
to your /etc/nixos/configuration.nix
to your /etc/nixos/configuration.nix


you should now be able to login test your system with this user and password.
you should now be able to login and test your system with this user and password.


https://discourse.nixos.org/t/default-login-and-password-for-nixos/4683/2
https://discourse.nixos.org/t/default-login-and-password-for-nixos/4683/2