Open jburget opened 2 months ago
have you copy the hardware-configuration.nix from /etc/nixos
in your vm to the host in this flake you want to use
I have used the installation script. Also as far as I remember, git has shown that hardware-configuration.nix has been modified, so I gues it should be correct.
sorry I didn't see you fixed the mounting point problem. For the second problem, “ctrl + alt + f4” to force into tty terminal. login from there and launch hyprland. the problem might be it using lightdm as displaymanager which got some problem. try using other display manager like sddm to avoid the issue
Hi :wave: I'm giving this repository a spin in a QEMU/KVM virtual machine as well (default settings) and bumped into the same issue. Switching to GRUB indeed fixes the first half of the issue because virt-manager defaults to BIOS firmware when you create the virtual machine for the first time and this repo assumes UEFI. Here are my discoveries and fix regarding the second half of this issue:
then switching configuration finished successfuly, however after reboot, very ordinary wayland login page showed up, password was accepted, screen went blank and then login page showed up again. And all over again.
This is actually because Hyprland crashes and exits over and over again booting you back to the login screen each time. I enabled logging, started Hyprland manually via TTY and noticed the following errors:
[render/egl.c:319] Software rendering detected, please use the WLR_RENDERER_ALLOW_SOFTWARE environment variable to proceed
159 │ [render/egl.c:571] Failed to initialize EGL context
160 │ [render/gles2/renderer.c:503] Could not initialize EGL
161 │ [CRITICAL] m_sWLRRenderer was NULL! This usually means wlroots could not find a GPU or enountered some issues.
162 │ [CRITICAL] Critical error thrown: wlr_gles2_renderer_create_with_drm_fd() failed!
Looking those up I found this issue https://github.com/hyprwm/Hyprland/issues/40 where people are saying 3D acceleration should be enabled. Enabling that in virt-manager resolved the issue on my end. The VM is incredibly slow but hey, at least it works :)
he problem might be it using lightdm as displaymanager which got some problem. try using other display manager like sddm to avoid the issue
I can confirm lightdm is not the issue. sddm might be a better choice over all though as they have experimental wayland support. But that's probably best discussed in another issue / discussion.
Sorry, didn't mean to close it. The vm host created by @sleeyax in #15 should solve your issue though. If you try it let me know if it is working.
Also sorry for not responding to you issue, I've been pretty busy and also didn't know how to help you out.
Hello,
I wanted to try out your amazing rice in VM. I created QEMU/KVM virtual machine via Virtual Machine Manager, available on Debian. I have used GNOME iso and installed Nixos with no desktop.
Switching configuratioin as is failed with following error:
I tried to fix it by using grub bootloader:
then switching configuration finished successfuly, however after reboot, very ordinary wayland login page showed up, password was accepted, screen went blank and then login page showed up again. And all over again.
This is my first experience with nixos, I would realy appretiate your help.