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

imported>Reijix
Added troubleshooting section
imported>Reijix
Updated filepaths according to style guide
Line 20: Line 20:
</syntaxhighlight>
</syntaxhighlight>


to your /etc/nixos/configuration.nix
to your <code>/etc/nixos/configuration.nix</code>


you should now be able to login and test your system with this user and password.
you should now be able to login and test your system with this user and password.
Line 53: Line 53:
== Troubleshooting ==
== Troubleshooting ==
=== Still can't login after updating configuration ===
=== Still can't login after updating configuration ===
When running a virtual machine a file called $hostname.qcow2 is created in your current working directory. After changing your /etc/nixos/configuration.nix delete this file, rebuild and then start the new virtual machine. Now you should be able to login.
When running a virtual machine a file called <code>$hostname.qcow2</code> is created in your current working directory. After changing your <code>/etc/nixos/configuration.nix</code> delete this file, rebuild and then start the new virtual machine. Now you should be able to login.