Bspwm configured through home-manager doesn't start

Here’s the bspwm module:

{ pkgs, ... }: {
    xsession = {
        enable = true;
        windowManager = {
            bspwm.enable = true;
        };
        profileExtra = ''
            clipmenud &
            xclip &
            setxkbmap -layout "us,ua" -option "grp:alt_shift_toggle" &
        '';
    };
}

The X.0.log doesn’t give much useful information:

[     5.036] 
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[     5.036] Current Operating System: Linux nixos-testing 6.6.32 #1-NixOS SMP PREEMPT_DYNAMIC Sat May 25 14:22:56 UTC 2024 x86_64
[     5.036] Kernel command line: initrd=\EFI\nixos\b70nv3pl5v76lqfmbbvzp8yh4gb26xhb-initrd-linux-6.6.32-initrd.efi init=/nix/store/dnidpv80s36zfnyadwf70yrxsl2sy376-nixos-system-nixos-testing-24.05.1358.47b604b07d1e/init loglevel=4
[     5.036]  
[     5.036] Current version of pixman: 0.43.4
[     5.036] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[     5.036] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     5.036] (++) Log file: "/var/log/X.0.log", Time: Fri Jun 28 18:50:33 2024
[     5.037] (++) Using config file: "/nix/store/p022d8svb94bhss1z4f1z1qg3fbdzfww-xserver.conf"
[     5.037] (==) Using config directory: "/etc/X11/xorg.conf.d"
[     5.037] (==) Using system config directory "/nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/share/X11/xorg.conf.d"
[     5.039] (==) ServerLayout "Layout[all]"
[     5.039] (**) |-->Screen "Screen-modesetting[0]" (0)
[     5.039] (**) |   |-->Monitor "<default monitor>"
[     5.039] (**) |   |-->Device "Device-modesetting[0]"
[     5.039] (==) No monitor specified for screen "Screen-modesetting[0]".
	Using a default monitor configuration.
[     5.039] (**) |-->Screen "Screen-fbdev[0]" (1)
[     5.039] (**) |   |-->Monitor "<default monitor>"
[     5.039] (**) |   |-->Device "Device-fbdev[0]"
[     5.039] (==) No monitor specified for screen "Screen-fbdev[0]".
	Using a default monitor configuration.
[     5.039] (**) Option "DontZap" "on"
[     5.039] (**) Option "AllowMouseOpenFail" "on"
[     5.039] (**) Allowing byte-swapped clients
[     5.039] (==) Automatically adding devices
[     5.039] (==) Automatically enabling devices
[     5.039] (==) Automatically adding GPU devices
[     5.039] (==) Automatically binding GPU devices
[     5.039] (==) Max clients allowed: 256, resource mask: 0x1fffff
[     5.047] (**) FontPath set to:
	/nix/store/hkzz7bgmkykfgj73jq0qvfqc7y9jcbmw-font-cursor-misc-1.0.4/lib/X11/fonts/misc,
	/nix/store/bsv3xk17x3hld3qqzrs8jjf8kffbjbw3-font-misc-misc-1.1.3/lib/X11/fonts/misc,
	/nix/store/8w054gwy0lmfdfwl0vb8a2fy1scc6sjw-unifont-15.1.05/share/fonts,
	/nix/store/3ym2gvbhkf7rc8yz94kk1d2b2rps6db9-font-adobe-100dpi-1.0.4/lib/X11/fonts/100dpi,
	/nix/store/7kvqidv2rs2xdk1zvzmfv2h2rbhc1c30-font-adobe-75dpi-1.0.4/lib/X11/fonts/75dpi
[     5.047] (**) ModulePath set to "/nix/store/gawn1hxchnl40mp9vqwzx0lwmyw7a4q2-xf86-video-fbdev-0.5.0/lib/xorg/modules,/nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/lib/xorg/modules,/nix/store/n9xbigfnyxb81wri58jqm5ag9ijw1dbn-xf86-input-evdev-2.10.6/lib/xorg/modules,/nix/store/2x164ya9010vc8fbp109l2jn1n2p0hh0-xf86-input-libinput-1.4.0/lib/xorg/modules"
[     5.047] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[     5.047] (II) Loader magic: 0x640e40
[     5.047] (II) Module ABI versions:
[     5.047] 	X.Org ANSI C Emulation: 0.4
[     5.047] 	X.Org Video Driver: 25.2
[     5.047] 	X.Org XInput driver : 24.4
[     5.047] 	X.Org Server Extension : 10.0
[     5.048] (++) using VT number 7

[     5.048] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[     5.049] (II) xfree86: Adding drm device (/dev/dri/card1)
[     5.049] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/drm/card1
[     5.058] (--) PCI:*(0@0:1:0) 1b36:0100:1af4:1100 rev 5, Mem @ 0x84000000/67108864, 0x80000000/67108864, 0x89c44000/8192, I/O @ 0x00006060/32, BIOS @ 0x????????/131072
[     5.058] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[     5.058] (II) "glx" will be loaded by default.
[     5.058] (II) LoadModule: "glx"
[     5.061] (II) Loading /nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/lib/xorg/modules/extensions/libglx.so
[     5.077] (II) Module glx: vendor="X.Org Foundation"
[     5.077] 	compiled for 1.21.1.13, module version = 1.0.0
[     5.077] 	ABI class: X.Org Server Extension, version 10.0
[     5.077] (II) LoadModule: "modesetting"
[     5.077] (II) Loading /nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/lib/xorg/modules/drivers/modesetting_drv.so
[     5.078] (II) Module modesetting: vendor="X.Org Foundation"
[     5.078] 	compiled for 1.21.1.13, module version = 1.21.1
[     5.078] 	Module class: X.Org Video Driver
[     5.078] 	ABI class: X.Org Video Driver, version 25.2
[     5.078] (II) LoadModule: "fbdev"
[     5.078] (II) Loading /nix/store/gawn1hxchnl40mp9vqwzx0lwmyw7a4q2-xf86-video-fbdev-0.5.0/lib/xorg/modules/drivers/fbdev_drv.so
[     5.079] (II) Module fbdev: vendor="X.Org Foundation"
[     5.079] 	compiled for 1.21.1.13, module version = 0.5.0
[     5.079] 	Module class: X.Org Video Driver
[     5.079] 	ABI class: X.Org Video Driver, version 25.2
[     5.079] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     5.079] (II) FBDEV: driver for framebuffer: fbdev
[     5.095] (II) modeset(0): using drv /dev/dri/card1
[     5.095] (WW) Falling back to old probe method for fbdev
[     5.095] (II) Loading sub module "fbdevhw"
[     5.095] (II) LoadModule: "fbdevhw"
[     5.096] (II) Loading /nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/lib/xorg/modules/libfbdevhw.so
[     5.097] (II) Module fbdevhw: vendor="X.Org Foundation"
[     5.097] 	compiled for 1.21.1.13, module version = 0.0.2
[     5.097] 	ABI class: X.Org Video Driver, version 25.2
[     5.097] (II) modeset(0): Creating default Display subsection in Screen section
	"Screen-modesetting[0]" for depth/fbbpp 24/32
[     5.097] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     5.097] (==) modeset(0): RGB weight 888
[     5.097] (==) modeset(0): Default visual is TrueColor
[     5.097] (II) Loading sub module "glamoregl"
[     5.097] (II) LoadModule: "glamoregl"
[     5.098] (II) Loading /nix/store/8jlz3l9kf9w7zq263vy3ms5c90hy96r4-xorg-server-21.1.13/lib/xorg/modules/libglamoregl.so
[     5.115] (II) Module glamoregl: vendor="X.Org Foundation"
[     5.115] 	compiled for 1.21.1.13, module version = 1.0.1
[     5.115] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     5.473] (II) modeset(0): Refusing to try glamor on llvmpipe
[     5.477] (II) modeset(0): glamor initialization failed
[     5.477] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[     5.477] (II) modeset(0): Output Virtual-1 has no monitor section
[     5.478] (II) modeset(0): Output Virtual-2 has no monitor section
[     5.478] (II) modeset(0): Output Virtual-3 has no monitor section
[     5.478] (II) modeset(0): Output Virtual-4 has no monitor section
[     5.478] (II) modeset(0): EDID for output Virtual-1
[     5.478] (II) modeset(0): Printing probed modes for output Virtual-1
[     5.478] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz eP)
[     5.478] (II) modeset(0): Modeline "2560x1600"x60.0  348.50  2560 2752 3032 3504  1600 1603 1609 1658 -hsync +vsync (99.5 kHz e)
[     5.478] (II) modeset(0): Modeline "2560x1600"x60.0  268.50  2560 2608 2640 2720  1600 1603 1609 1646 +hsync -vsync (98.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1920x1440"x60.0  234.00  1920 2048 2256 2600  1440 1441 1444 1500 -hsync +vsync (90.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1856x1392"x60.0  218.25  1856 1952 2176 2528  1392 1393 1396 1439 -hsync +vsync (86.3 kHz e)
[     5.478] (II) modeset(0): Modeline "1792x1344"x60.0  204.75  1792 1920 2120 2448  1344 1345 1348 1394 -hsync +vsync (83.6 kHz e)
[     5.478] (II) modeset(0): Modeline "2048x1152"x60.0  162.00  2048 2074 2154 2250  1152 1153 1156 1200 +hsync +vsync (72.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1920x1200"x59.9  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync (74.6 kHz e)
[     5.478] (II) modeset(0): Modeline "1920x1200"x60.0  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync (74.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[     5.478] (II) modeset(0): Modeline "1600x1200"x60.0  162.00  1600 1664 1856 2160  1200 1201 1204 1250 +hsync +vsync (75.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[     5.478] (II) modeset(0): Modeline "1680x1050"x59.9  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1400x1050"x60.0  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync (65.3 kHz e)
[     5.478] (II) modeset(0): Modeline "1400x1050"x59.9  101.00  1400 1448 1480 1560  1050 1053 1057 1080 +hsync -vsync (64.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[     5.478] (II) modeset(0): Modeline "1440x900"x59.9   88.75  1440 1488 1520 1600  900 903 909 926 +hsync -vsync (55.5 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x854"x60.0   89.34  1280 1352 1480 1680  854 857 867 887 -hsync +vsync (53.2 kHz)
[     5.478] (II) modeset(0): Modeline "1366x768"x59.8   85.50  1366 1436 1579 1792  768 771 774 798 +hsync +vsync (47.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1366x768"x60.0   72.00  1366 1380 1436 1500  768 769 772 800 +hsync +vsync (48.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x800"x59.9   71.00  1280 1328 1360 1440  800 803 809 823 +hsync -vsync (49.3 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x768"x59.9   79.50  1280 1344 1472 1664  768 771 778 798 -hsync +vsync (47.8 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x768"x60.0   68.25  1280 1328 1360 1440  768 771 778 790 +hsync -vsync (47.4 kHz e)
[     5.478] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[     5.478] (II) modeset(0): Modeline "1152x768"x59.9   71.95  1152 1216 1328 1504  768 771 781 798 -hsync +vsync (47.8 kHz)
[     5.478] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[     5.478] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[     5.478] (II) modeset(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[     5.478] (II) modeset(0): Modeline "720x480"x59.9   26.85  720 744 808 896  480 483 493 500 -hsync +vsync (30.0 kHz)
[     5.478] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[     5.478] (II) modeset(0): EDID for output Virtual-2
[     5.478] (II) modeset(0): EDID for output Virtual-3
[     5.478] (II) modeset(0): EDID for output Virtual-4
[     5.478] (II) modeset(0): Output Virtual-1 connected
[     5.478] (II) modeset(0): Output Virtual-2 disconnected
[     5.478] (II) modeset(0): Output Virtual-3 disconnected
[     5.478] (II) modeset(0): Output Virtual-4 disconnected
[     5.478] (II) modeset(0): Using exact sizes for initial modes
[     5.478] (II) modeset(0): Output Virtual-1 using initial mode 1024x768 +0+0
[     5.478] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[     5.478] (==) modeset(0): DPI set to (96, 96)
[     5.478] (II) Loading sub module "fb"
[     5.478] (II) LoadModule: "fb"
[     5.478] (II) Module "fb" already built-in
[     5.478] (II) UnloadModule: "fbdev"
[     5.478] (II) Unloading fbdev
[     5.478] (II) UnloadSubModule: "fbdevhw"
[     5.478] (II) Unloading fbdevhw
[     5.480] (==) modeset(0): Backing store enabled
[     5.480] (==) modeset(0): Silken mouse enabled
[     5.481] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[     5.481] (==) modeset(0): DPMS enabled
[     5.481] (II) Initializing extension Generic Event Extension
[     5.481] (II) Initializing extension SHAPE
[     5.481] (II) Initializing extension MIT-SHM
[     5.481] (II) Initializing extension XInputExtension
[     5.482] (II) Initializing extension XTEST
[     5.482] (II) Initializing extension BIG-REQUESTS
[     5.482] (II) Initializing extension SYNC
[     5.482] (II) Initializing extension XKEYBOARD
[     5.482] (II) Initializing extension XC-MISC
[     5.482] (II) Initializing extension SECURITY
[     5.482] (II) Initializing extension XFIXES
[     5.482] (II) Initializing extension RENDER
[     5.482] (II) Initializing extension RANDR
[     5.483] (II) Initializing extension COMPOSITE
[     5.483] (II) Initializing extension DAMAGE
[     5.483] (II) Initializing extension MIT-SCREEN-SAVER
[     5.483] (II) Initializing extension DOUBLE-BUFFER
[     5.483] (II) Initializing extension RECORD
[     5.483] (II) Initializing extension DPMS
[     5.483] (II) Initializing extension Present
[     5.483] (II) Initializing extension DRI3
[     5.483] (II) Initializing extension X-Resource
[     5.483] (II) Initializing extension XVideo
[     5.483] (II) Initializing extension XVideo-MotionCompensation
[     5.483] (II) Initializing extension GLX
[     5.483] (II) AIGLX: Screen 0 is not DRI2 capable
[     5.489] (II) IGLX: Loaded and initialized swrast
[     5.489] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[     5.489] (II) Initializing extension XFree86-VidModeExtension
[     5.489] (II) Initializing extension XFree86-DGA
[     5.489] (II) Initializing extension XFree86-DRI
[     5.489] (II) Initializing extension DRI2
[     5.489] (II) modeset(0): Damage tracking initialized
[     5.489] (II) modeset(0): Setting screen physical size to 270 x 203
[     5.580] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[     5.580] (**) Power Button: Applying InputClass "Keyboard catchall"
[     5.580] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[     5.580] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     5.580] (II) LoadModule: "libinput"
[     5.584] (II) Loading /nix/store/2x164ya9010vc8fbp109l2jn1n2p0hh0-xf86-input-libinput-1.4.0/lib/xorg/modules/input/libinput_drv.so
[     5.591] (II) Module libinput: vendor="X.Org Foundation"
[     5.591] 	compiled for 1.21.1.13, module version = 1.4.0
[     5.591] 	Module class: X.Org XInput Driver
[     5.591] 	ABI class: X.Org XInput driver, version 24.4
[     5.591] (II) Using input driver 'libinput' for 'Power Button'
[     5.591] (**) Power Button: always reports core events
[     5.591] (**) Option "Device" "/dev/input/event2"
[     5.603] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     5.603] (II) event2  - Power Button: device is a keyboard
[     5.603] (II) event2  - Power Button: device removed
[     5.613] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event2"
[     5.613] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     5.613] (**) Option "xkb_model" "pc104"
[     5.613] (**) Option "xkb_layout" "us"
[     5.613] (WW) Option "xkb_variant" requires a string value
[     5.613] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[     5.653] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     5.653] (II) event2  - Power Button: device is a keyboard
[     5.655] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/event1)
[     5.655] (**) QEMU QEMU USB Tablet: Applying InputClass "evdev pointer catchall"
[     5.655] (**) QEMU QEMU USB Tablet: Applying InputClass "libinput pointer catchall"
[     5.655] (**) QEMU QEMU USB Tablet: Applying InputClass "libinput mouse configuration"
[     5.655] (II) Using input driver 'libinput' for 'QEMU QEMU USB Tablet'
[     5.655] (**) QEMU QEMU USB Tablet: always reports core events
[     5.655] (**) Option "Device" "/dev/input/event1"
[     5.709] (II) event1  - QEMU QEMU USB Tablet: is tagged by udev as: Mouse
[     5.709] (II) event1  - QEMU QEMU USB Tablet: device is a pointer
[     5.709] (II) event1  - QEMU QEMU USB Tablet: device removed
[     5.723] (**) Option "NaturalScrolling" "off"
[     5.723] (**) Option "SendEventsMode" "enabled"
[     5.723] (**) Option "LeftHanded" "off"
[     5.723] (**) Option "MiddleEmulation" "on"
[     5.723] (**) Option "HorizontalScrolling" "on"
[     5.723] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.1/0000:02:00.0/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input2/event1"
[     5.723] (II) XINPUT: Adding extended input device "QEMU QEMU USB Tablet" (type: MOUSE, id 7)
[     5.723] (**) Option "AccelerationScheme" "none"
[     5.723] (**) QEMU QEMU USB Tablet: (accel) selected scheme none/0
[     5.723] (**) QEMU QEMU USB Tablet: (accel) acceleration factor: 2.000
[     5.723] (**) QEMU QEMU USB Tablet: (accel) acceleration threshold: 4
[     5.777] (II) event1  - QEMU QEMU USB Tablet: is tagged by udev as: Mouse
[     5.777] (II) event1  - QEMU QEMU USB Tablet: device is a pointer
[     5.778] (II) config/udev: Adding input device QEMU QEMU USB Tablet (/dev/input/mouse0)
[     5.778] (II) No input driver specified, ignoring this device.
[     5.778] (II) This device may have been added with another device file.
[     5.779] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[     5.779] (**) AT Translated Set 2 keyboard: Applying InputClass "Keyboard catchall"
[     5.779] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[     5.779] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[     5.779] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[     5.779] (**) AT Translated Set 2 keyboard: always reports core events
[     5.779] (**) Option "Device" "/dev/input/event0"
[     5.779] (II) event0  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     5.779] (II) event0  - AT Translated Set 2 keyboard: device is a keyboard
[     5.780] (II) event0  - AT Translated Set 2 keyboard: device removed
[     5.790] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[     5.790] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 8)
[     5.790] (**) Option "xkb_model" "pc104"
[     5.790] (**) Option "xkb_layout" "us"
[     5.790] (WW) Option "xkb_variant" requires a string value
[     5.790] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[     5.792] (II) event0  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     5.792] (II) event0  - AT Translated Set 2 keyboard: device is a keyboard
[     5.792] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/event3)
[     5.792] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "evdev pointer catchall"
[     5.792] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "libinput pointer catchall"
[     5.792] (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "libinput mouse configuration"
[     5.792] (II) Using input driver 'libinput' for 'ImExPS/2 Generic Explorer Mouse'
[     5.792] (**) ImExPS/2 Generic Explorer Mouse: always reports core events
[     5.792] (**) Option "Device" "/dev/input/event3"
[     5.793] (II) event3  - ImExPS/2 Generic Explorer Mouse: is tagged by udev as: Mouse
[     5.793] (II) event3  - ImExPS/2 Generic Explorer Mouse: device is a pointer
[     5.793] (II) event3  - ImExPS/2 Generic Explorer Mouse: device removed
[     5.808] (**) Option "AccelProfile" "adaptive"
[     5.808] (II) libinput: ImExPS/2 Generic Explorer Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.808] (II) libinput: ImExPS/2 Generic Explorer Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.808] (II) libinput: ImExPS/2 Generic Explorer Mouse: Step value 0 was provided, libinput Fallback acceleration function is used.
[     5.808] (**) Option "NaturalScrolling" "off"
[     5.808] (**) Option "SendEventsMode" "enabled"
[     5.808] (**) Option "LeftHanded" "off"
[     5.808] (**) Option "ScrollMethod" "twofinger"
[     5.808] (**) Option "MiddleEmulation" "on"
[     5.808] (**) Option "HorizontalScrolling" "on"
[     5.808] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input4/event3"
[     5.808] (II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE, id 9)
[     5.808] (EE) libinput: ImExPS/2 Generic Explorer Mouse: Failed to set scroll to twofinger
[     5.808] (**) Option "AccelerationScheme" "none"
[     5.808] (**) ImExPS/2 Generic Explorer Mouse: (accel) selected scheme none/0
[     5.808] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration factor: 2.000
[     5.808] (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration threshold: 4
[     5.809] (II) event3  - ImExPS/2 Generic Explorer Mouse: is tagged by udev as: Mouse
[     5.809] (II) event3  - ImExPS/2 Generic Explorer Mouse: device is a pointer
[     5.809] (EE) libinput: ImExPS/2 Generic Explorer Mouse: Failed to set scroll to twofinger
[     5.810] (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/mouse1)
[     5.810] (II) No input driver specified, ignoring this device.
[     5.810] (II) This device may have been added with another device file.
[    12.102] (II) event2  - Power Button: device removed
[    12.108] (II) event1  - QEMU QEMU USB Tablet: device removed
[    12.120] (II) event0  - AT Translated Set 2 keyboard: device removed
[    12.126] (II) event3  - ImExPS/2 Generic Explorer Mouse: device removed
[   774.241] (II) UnloadModule: "libinput"
[   774.241] (II) UnloadModule: "libinput"
[   774.241] (II) UnloadModule: "libinput"
[   774.241] (II) UnloadModule: "libinput"
[   774.242] (II) Server terminated successfully (0). Closing log file.

Seems like this whole time it was saving the log to ~/.local/share/xorg.
https://0x0.st/XBCF.1.log

cp ~/.xsession ~/.xinitrc solved the problem. What’s the right way to deal with X11 using home-manager?