On Bazzite there is a built-in ujust script:
enroll-secure-boot-key # Enroll Nvidia driver & KMOD signing key for secure boot - Enter password "universalblue" if prompted
But I don't really understand how Secure Boot works so far, so I wonder if using it fixes the issue.