Sway fails to start (Can't load drivers?)

Using Home Manager sway in NixOS using the latest nixos-unstable, sway --verbose --debug’s output is:

00:00:00.000 [INFO] [sway/main.c:338] Sway version 1.8.1
00:00:00.000 [INFO] [sway/main.c:339] wlroots version 0.16.2
00:00:00.002 [INFO] [sway/main.c:120] Linux hostname 5.17.2-zen3 #1-NixOS ZEN SMP PREEMPT Tue Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux
00:00:00.002 [INFO] [sway/main.c:136] Contents of /etc/lsb-release:
00:00:00.002 [INFO] [sway/main.c:120] DISTRIB_CODENAME=quokka
00:00:00.002 [INFO] [sway/main.c:120] DISTRIB_DESCRIPTION="NixOS 22.05 (Quokka)"
00:00:00.002 [INFO] [sway/main.c:120] DISTRIB_ID=nixos
00:00:00.002 [INFO] [sway/main.c:120] DISTRIB_RELEASE="22.05"
00:00:00.002 [INFO] [sway/main.c:120] LSB_VERSION="22.05 (Quokka)"
00:00:00.002 [INFO] [sway/main.c:136] Contents of /etc/os-release:
00:00:00.002 [INFO] [sway/main.c:120] BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
00:00:00.002 [INFO] [sway/main.c:120] BUILD_ID="22.05.20220419.c10c891"
00:00:00.002 [INFO] [sway/main.c:120] DOCUMENTATION_URL="https://nixos.org/learn.html"
00:00:00.002 [INFO] [sway/main.c:120] HOME_URL="https://nixos.org/"
00:00:00.002 [INFO] [sway/main.c:120] ID=nixos
00:00:00.002 [INFO] [sway/main.c:120] LOGO="nix-snowflake"
00:00:00.002 [INFO] [sway/main.c:120] NAME=NixOS
00:00:00.002 [INFO] [sway/main.c:120] PRETTY_NAME="NixOS 22.05 (Quokka)"
00:00:00.002 [INFO] [sway/main.c:120] SUPPORT_URL="https://nixos.org/community.html"
00:00:00.002 [INFO] [sway/main.c:120] VERSION="22.05 (Quokka)"
00:00:00.002 [INFO] [sway/main.c:120] VERSION_CODENAME=quokka
00:00:00.002 [INFO] [sway/main.c:120] VERSION_ID="22.05"
00:00:00.002 [INFO] [sway/main.c:108] LD_LIBRARY_PATH=/nix/store/m9h6pw37by54b1vcyf4y0bai7mrf8d97-sane-config/lib/sane
00:00:00.002 [INFO] [sway/main.c:108] LD_PRELOAD=
00:00:00.002 [INFO] [sway/main.c:108] PATH=/run/wrappers/bin:/home/user/.nix-profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/user/.local/bin
00:00:00.002 [INFO] [sway/main.c:108] SWAYSOCK=
00:00:00.002 [INFO] [sway/main.c:376] Starting sway version 1.8.1
00:00:00.003 [DEBUG] [sway/server.c:67] Initializing Wayland server
00:00:00.004 [INFO] [wlr] [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
00:00:00.004 [INFO] [wlr] [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
00:00:00.007 [INFO] [wlr] [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
00:00:00.007 [INFO] [wlr] [backend/session/session.c:109] Successfully loaded libseat session
00:00:00.009 [INFO] [wlr] [backend/backend.c:220] Found 1 GPUs
00:00:00.009 [INFO] [wlr] [backend/drm/backend.c:200] Initializing DRM backend for /dev/dri/card0 (amdgpu)
00:00:00.009 [DEBUG] [wlr] [backend/drm/drm.c:88] Using atomic DRM interface
00:00:00.009 [DEBUG] [wlr] [backend/drm/drm.c:100] ADDFB2 modifiers unsupported
00:00:00.009 [INFO] [wlr] [backend/drm/drm.c:253] Found 6 DRM CRTCs
00:00:00.009 [INFO] [wlr] [backend/drm/drm.c:180] Found 12 DRM planes
00:00:00.024 [INFO] [wlr] [render/egl.c:201] Supported EGL client extensions: EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_MESA_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless
00:00:00.024 [DEBUG] [wlr] [render/egl.c:469] Using EGL device /dev/dri/card0
00:00:00.267 [INFO] [wlr] [render/egl.c:347] Using EGL 1.5
00:00:00.267 [INFO] [wlr] [render/egl.c:348] Supported EGL display extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display 
00:00:00.267 [INFO] [wlr] [render/egl.c:350] Supported EGL device extensions: EGL_EXT_device_drm EGL_EXT_device_drm_render_node
00:00:00.267 [INFO] [wlr] [render/egl.c:352] EGL vendor: Mesa Project
00:00:00.267 [DEBUG] [wlr] [render/egl.c:121] Supported DMA-BUF formats:
00:00:00.267 [DEBUG] [wlr] [render/egl.c:165]   AB4H (0x48344241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XB4H (0x48344258)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AR30 (0x30335241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XR30 (0x30335258)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AB30 (0x30334241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XB30 (0x30334258)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AR24 (0x34325241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AB24 (0x34324241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XR24 (0x34325258)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XB24 (0x34324258)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AR15 (0x35315241)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   RG16 (0x36314752)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   R8 (0x20203852)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   R16 (0x20363152)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   GR88 (0x38385247)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   GR32 (0x32335247)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YUV9 (0x39565559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YU11 (0x31315559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YU12 (0x32315559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YU16 (0x36315559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YU24 (0x34325559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YVU9 (0x39555659)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YV11 (0x31315659)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YV12 (0x32315659)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YV16 (0x36315659)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YV24 (0x34325659)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   NV12 (0x3231564E)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   P010 (0x30313050)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   P012 (0x32313050)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   P016 (0x36313050)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   NV16 (0x3631564E)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   AYUV (0x56555941)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   XYUV (0x56555958)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y410 (0x30313459)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y412 (0x32313459)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y416 (0x36313459)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   YUYV (0x56595559)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   UYVY (0x59565955)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y210 (0x30313259)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y212 (0x32313259)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:165]   Y216 (0x36313259)
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     INVALID (0x00FFFFFFFFFFFFFF): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:104]     LINEAR (0x0000000000000000): βœ“ texture  βœ“ render
00:00:00.268 [DEBUG] [wlr] [render/egl.c:185] EGL DMA-BUF format modifiers unsupported
00:00:00.274 [DEBUG] [wlr] [render/egl.c:518] Using EGL_PLATFORM_DEVICE_EXT
00:00:00.275 [INFO] [wlr] [render/gles2/renderer.c:718] Creating GLES2 renderer
00:00:00.275 [INFO] [wlr] [render/gles2/renderer.c:719] Using OpenGL ES 3.2 Mesa 22.0.1
00:00:00.275 [INFO] [wlr] [render/gles2/renderer.c:720] GL vendor: AMD
00:00:00.275 [INFO] [wlr] [render/gles2/renderer.c:721] GL renderer: AMD Radeon RX 590 Series (polaris10, LLVM 13.0.1, DRM 3.44, 5.17.2-zen3)
00:00:00.275 [INFO] [wlr] [render/gles2/renderer.c:722] Supported GLES2 extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_robustness GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_ANDROID_extension_pack_es31a GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_EXT_window_rectangles GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_color_buffer_half_float GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_texture_compression_bptc GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_NV_alpha_to_coverage_dither_control GL_AMD_framebuffer_multisample_advanced GL_EXT_EGL_image_storage GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp GL_EXT_texture_query_lod GL_MESA_bgra 
00:00:00.288 [DEBUG] [wlr] [render/allocator/allocator.c:106] Trying to create gbm allocator
did not find extension DRI_Mesa version 1
failed to bind extensions
MESA-LOADER: failed to open zink: /run/opengl-driver/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
did not find extension DRI_Mesa version 1
failed to bind extensions
did not find extension DRI_Mesa version 1
failed to bind extensions
00:00:00.292 [ERROR] [wlr] [render/allocator/gbm.c:205] gbm_create_device failed
00:00:00.292 [DEBUG] [wlr] [render/allocator/allocator.c:115] Failed to create gbm allocator
00:00:00.292 [DEBUG] [wlr] [render/allocator/allocator.c:131] Trying to create drm dumb allocator
00:00:00.292 [DEBUG] [wlr] [render/allocator/drm_dumb.c:235] Created DRM dumb allocator
00:00:00.292 [DEBUG] [wlr] [types/wlr_idle.c:246] idle manager created
00:00:00.293 [DEBUG] [wlr] [types/wlr_drm_lease_v1.c:638] Creating wlr_drm_lease_device_v1 for /dev/dri/card0
00:00:00.293 [INFO] [wlr] [backend/headless/backend.c:68] Creating headless backend

#  <snip>

00:00:00.849 [INFO] [wlr] [backend/drm/drm.c:1338] Scanning DRM connectors on /dev/dri/card0
00:00:00.849 [INFO] [wlr] [backend/drm/drm.c:1389] Found connector 'DP-1'
00:00:00.849 [INFO] [wlr] [backend/drm/drm.c:1389] Found connector 'DP-2'
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1389] Found connector 'DP-3'
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1414] 'DP-3' connected
00:00:00.850 [DEBUG] [wlr] [backend/drm/drm.c:1220] Current CRTC: 53
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1230] Physical size: 530x300
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1287] Detected modes:
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 60.000 Hz (preferred)
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 144.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 120.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 119.880 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 119.982 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 99.930 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 74.973 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 50.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1680x1050 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x1024 @ 75.025 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x1024 @ 60.020 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1440x900 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x800 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x720 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x720 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x720 @ 50.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 119.926 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 99.991 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 75.029 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 70.069 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 60.004 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   832x624 @ 74.551 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 119.933 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 99.862 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 75.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 72.188 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 60.317 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 56.250 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x576 @ 50.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x576 @ 50.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x480 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x480 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x480 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x480 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 119.803 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 99.825 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 75.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 72.809 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 66.667 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 60.000 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 59.940 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1315]   720x400 @ 70.082 Hz 
00:00:00.850 [INFO] [wlr] [backend/drm/drm.c:1389] Found connector 'HDMI-A-1'
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1389] Found connector 'DVI-D-1'
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1414] 'DVI-D-1' connected
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1220] Current CRTC: 55
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1230] Physical size: 510x290
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1287] Detected modes:
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1920x1080 @ 60.000 Hz (preferred)
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1680x1050 @ 59.883 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x1024 @ 60.020 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1440x900 @ 59.901 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x800 @ 60.000 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1280x720 @ 60.000 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   1024x768 @ 60.004 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   800x600 @ 60.317 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   640x480 @ 59.940 Hz 
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1315]   720x400 @ 70.082 Hz 
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1011] Reallocating CRTCs
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1022] State before reallocation:
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1036]   'DP-1' crtc=-1 status=2 want_crtc=0
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1036]   'DP-2' crtc=-1 status=2 want_crtc=0
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1036]   'DP-3' crtc=0 status=1 want_crtc=1
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1036]   'HDMI-A-1' crtc=-1 status=2 want_crtc=0
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1036]   'DVI-D-1' crtc=1 status=1 want_crtc=1
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1078] State after reallocation:
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1085]   'DP-1' crtc=-1 status=2
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1085]   'DP-2' crtc=-1 status=2
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1085]   'DP-3' crtc=0 status=1
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1085]   'HDMI-A-1' crtc=-1 status=2
00:00:00.851 [DEBUG] [wlr] [backend/drm/drm.c:1085]   'DVI-D-1' crtc=1 status=1
00:00:00.851 [INFO] [wlr] [backend/drm/drm.c:1447] connector DP-3: Requesting modeset
00:00:00.851 [DEBUG] [sway/desktop/output.c:912] New output 0x1d79890: DP-3 (non-desktop: 0)
00:00:00.851 [DEBUG] [sway/config/output.c:395] Turning on output DP-3
00:00:00.851 [DEBUG] [sway/config/output.c:403] Set DP-3 mode to 1920x1080 (144.000000 Hz)
00:00:00.851 [DEBUG] [sway/config/output.c:282] Assigning configured mode to DP-3
00:00:00.851 [DEBUG] [sway/config/output.c:441] Auto-detected output transform: 0
00:00:00.851 [DEBUG] [sway/config/output.c:455] Auto-detected output scale: 1.000000
00:00:00.851 [DEBUG] [sway/config/output.c:506] Committing output DP-3
00:00:00.851 [DEBUG] [wlr] [types/output/render.c:229] Attaching empty buffer to output for modeset
00:00:00.851 [DEBUG] [wlr] [types/output/render.c:75] Choosing primary buffer format XR24 (0x34325258) for output 'DP-3'
00:00:00.851 [DEBUG] [wlr] [render/swapchain.c:105] Allocating new swapchain buffer
00:00:00.854 [DEBUG] [wlr] [render/allocator/drm_dumb.c:112] Allocated 1920x1080 DRM dumb buffer
00:00:00.854 [ERROR] [wlr] [EGL] command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"
00:00:00.854 [ERROR] [wlr] [render/egl.c:767] eglCreateImageKHR failed
00:00:00.854 [ERROR] [sway/config/output.c:511] Failed to commit output DP-3
00:00:00.854 [INFO] [wlr] [backend/drm/drm.c:1447] connector DVI-D-1: Requesting modeset
00:00:00.854 [DEBUG] [sway/desktop/output.c:912] New output 0x1d7a240: DVI-D-1 (non-desktop: 0)
00:00:00.854 [DEBUG] [sway/config/output.c:395] Turning on output DVI-D-1
00:00:00.854 [DEBUG] [sway/config/output.c:403] Set DVI-D-1 mode to 1920x1080 (60.000000 Hz)
00:00:00.854 [DEBUG] [sway/config/output.c:282] Assigning configured mode to DVI-D-1
00:00:00.854 [DEBUG] [sway/config/output.c:441] Auto-detected output transform: 0
00:00:00.854 [DEBUG] [sway/config/output.c:455] Auto-detected output scale: 1.000000
00:00:00.854 [DEBUG] [sway/config/output.c:506] Committing output DVI-D-1
00:00:00.854 [DEBUG] [wlr] [types/output/render.c:229] Attaching empty buffer to output for modeset
00:00:00.854 [DEBUG] [wlr] [types/output/render.c:75] Choosing primary buffer format XR24 (0x34325258) for output 'DVI-D-1'
00:00:00.854 [DEBUG] [wlr] [render/swapchain.c:105] Allocating new swapchain buffer
00:00:00.856 [DEBUG] [wlr] [render/allocator/drm_dumb.c:112] Allocated 1920x1080 DRM dumb buffer
00:00:00.856 [ERROR] [wlr] [EGL] command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"
00:00:00.856 [ERROR] [wlr] [render/egl.c:767] eglCreateImageKHR failed
00:00:00.856 [ERROR] [sway/config/output.c:511] Failed to commit output DVI-D-1
00:00:00.856 [INFO] [wlr] [backend/headless/backend.c:16] Starting headless backend

# <snip>

I have had nixpkgs pinned to this commit (not significant, I just know it works) for a while now as this issue has continued to happen.

(If more information about my system configuration is required I will be happy to provide it)

1 Like

I have stopped experiencing this issue after I just reinstalled NixOS.

Not to necropost, but to be clear, the root problem I was facing was improperly applying a new NixOS configuration from my flake.

My old script was:

nix build ".#nixosConfigurations.$HOSTNAME.config.system.build.toplevel" && sudo result/bin/switch-to-configuration switch

But I when I tried reinstalling NixOS, I realized that changes to my config weren’t applying across reboots. I replaced it with this:

sudo nixos-rebuild switch --flake .