hey, very new to nix, so sorry if I’m missing something basic.
I’m trying to make a liveUSB(config file here), and the goal is to start in a tty, and start a sway session optionally.
when I turn on sway debug, the last info message I get is
[wlr] [backend/session/session.c:473] Waiting for a DRM card device
then I get found 0 gpus
some things I’ve noticed
-
/run/user/1000/wayland-0
does not exists - path
/dev/dri
doesn’t exists, which from what I understand is supposed to be created by the kernel. - I’m not seeing any errors in dmesg
given 2 I’m guessing I 'm supposed to add something to the boot or kernel config that I haven’t. relevant sections of my config
hardware = {
cpu.amd.updateMicrocode = true;
#enableAllFirmware = true;
enableRedistributableFirmware = true;
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = [ pkgs.vulkan-validation-layers pkgs.vaapiVdpau pkgs.libvdpau-va-gl ];
};
...
};
...
boot = {
tmp.cleanOnBoot = true;
kernel.sysctl = {"kernel.unprivileged_bpf_disabled" = 1;};
};
services = {
...
xserver = {
enable = true;
videoDrivers = [ "amdgpu" "modesetting" "fbdev" ];
};
Also, searching for similar issues this comes up but it looks like his is failing at an earlier point, and I have polkit enabled in my config