Need guidance on services.dwm-status

i just want to set some custom text on the dwm status bar and if i do the following

services.dwm-status.order = ["time"];

then it shows the time no problem, but i checked man configurationl.nix and it shows an option for services.dwm-status.extraConfig where i can define something custom, i think, the documentation, as always, is almost maliciously unhelpful, i mean seriously this is the entire explanation on extraConfig

       services.dwm-status.extraConfig
           Extra config in TOML format.

           Type: strings concatenated with “\n”

           Default: ""

no examples, no links to more detailed docs, nothing, the most i was able to do was this

services.dwm-status = {
	order = [ "time" ];
	extraConfig = ''
		time() {
			wifi=$(nmcli -t -f active,ssid dev wifi 2>/dev/null | grep '^yes:' | cut -d ':' -f 2)
			wifi_name="$${wifi:-N/A}"

			day=$(date +"%a")
			date=$(date +"%d-%m-%y")
			time=$(date +"%I:%M:%S")

			xsetroot -name "  ╠═══ $${wifi_name} ═══╬═══ $${day} ▊ $${date} ▊ $${time} ═══╣ "
		}
	'';
}

which actually “worked” and the system did perform the switch without any errors, but after i reboot all the status bar shows is dwm-6.5

if someone can help me out here that would be really great, i have tested this individually in a shell file and i can confirm it is a working piece of code, it just wont work here

P.S.
i tried to apply a custom setting like this

order = ["custom-status"];
extraConfig = ''
    custom-status() {...};
'';

but that gave an error so i just redefined an existing option and now im stuck