Hello i've googled around to try to figure this out.
I feel im very close.

Im trying to add different actions to identical keybindings depending on the HOST im on. (i use my xmonad.hs file for my desktop and laptop)

Here is a snippet of what i did: (start on line 101)
https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41

I get the error "hostname not in scope".

I also have a hook which uses "hostname" and it works but cant add to keybindings.

What am i missing?

Thank you,
Dave