nixos/xmonad: make a wrapper

This allows one to use "xmonad --recompile" without problems.
These changes are unrelated to the xmonad wrapper. Please don't include them here in this PR.