Use the new module lib.zsh to generate export statements in zsh syntax, using zsh arrays for lists. Being a zsh script, this seems more intuitive for .zshrc (cherry picked from commit 6b5e0efd1e)
6b5e0efd1e
home.extraProfileCommands
xsession.scriptPath