Use a different shell with "boot.initrd.postDeviceCommands"

Hello!

     Is it possible to use a different shell with boot.initrd.postDeviceCommands, when using lib.mkAfter, such as the bash-wards xonsh?

Thank you kindly for the help!