I wanted to thank you — I treated myself and bought a new Nitrokey 3A NFC, so I now have a second key in addition to my Nitrokey 3A Mini.
And your script works great; I was able to enroll both Nitrokeys and everything works perfectly.
I even had fun trying it with a Ledger key — I just disabled the PIN prompt, since the PIN is entered directly on the Ledger itself, and it works as well.
So now, to unlock my laptop, I can choose between:
Nitrokey 3A Mini (it’s cool, it always stays plugged into my laptop)
Nitrokey 3A NFC (it’s my backup that I keep elsewhere)
A Ledger key
So I don’t need any password anymore, and I removed the password from my LUKS volume.