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

imported>Oxalica
m Mention options to enlarge CPU count and memory size of the virtual machine
imported>ErnstderLage
m update
Line 6: Line 6:


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 will not be able to login to this virtual machine, as the passwords are not carried over to the virtual machine you build.
You should have user nixosvmtest (isSystemUser or isNormalUser)
<syntaxhighlight lang="nix">
users.users.nixosvmtest.isSystemUser = true ;
users.users.nixosvmtest.initialPassword = "test";
</syntaxhighlight>


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">
users.users.nixosvmtest.initialPassword = "test";
users.users.nixosvmtest.group = "nixosvmtest";
users.groups.nixosvmtest = {};
</syntaxhighlight>
</syntaxhighlight>