Sway permissions

I’m writing this with my brand new config using sway, and it looks pretty good so far.

What I don’t understand is why, right after boot, if I try to run sway I get:

[backend/session/logind.c:73] Failed to take device '/dev/dri/card0': Operation not permitted 
[backend/backend.c:339] Failed to open any DRM device 
[sway/server.c:46] Unable to create backend

(or something to that effect), but after I do a rebuild switch (with no changes to che configuration) I can then run it with no problems.

(I added my user to video and sway, not sure if it’s necessary)

Never mind, I saw here that I’m supposed to add the card’s kernel module to boot.initrd.availableKernelModules, and now it seems to work.