Need help modifying a waybar script

^ here is the waybar code I retrived from home-manager, I need to modify it so it is a submodule that takes a users name, like waybar... Then I need to use the user listed in the submodule, then make the config files, I dont expect someone to do all the work for me, but I need help as it is kind of difficult for me.