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

imported>Mcdonc
Using virtualisation.cores and virtualisation.memorySize and importing virtualisation/qemu-vm.nix effectively tells Nix your host system is a VM, and all kinds of hilarity ensues... see https://github.com/NixOS/nixpkgs/issues/247413
imported>Mcdonc
Get setting names right
Line 28: Line 28:
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


By default, the virtual machine is configured to have 1 CPU and 1024MiB memory. It may be too small for testing with desktop environment enabled inside. You can set options <code>virtualisation.vmVariant.cores</code> and <code>virtualisation.vmVariant.memorySize</code> to enlarge the CPU cores and memory size for the virtual machine.  
By default, the virtual machine is configured to have 1 CPU and 1024MiB memory. It may be too small for testing with desktop environment enabled inside. You can set options <code>virtualisation.vmVariant.virtualisation.cores</code> and <code>virtualisation.vmVariant.virtualisation.memorySize</code> to enlarge the CPU cores and memory size for the virtual machine.  


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">