···
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
<title>XFCE Desktop Environment</title>
···
services.xserver.displayManager.kdm.enable = true;
+
<title>Thunar Volume Support</title>
+
<emphasis>Thunar</emphasis>
+
services.xserver.desktopManager.xfce.enable = true;
+
into your <emphasis>configuration.nix</emphasis>.
+
<title>Polkit Authentication Agent</title>
+
There is no authentication agent automatically installed alongside
+
XFCE. To allow mounting of local (non-removable) filesystems, you
+
will need to install one.
+
Installing <emphasis>polkit_gnome</emphasis>, a rebuild, logout and
+
<title>Troubleshooting</title>
+
Even after enabling udisks2, volume management might not work.
+
Thunar and/or the desktop takes time to show up.
+
Thunar will spit out this kind of message on start
+
(look at journalctl --user -b).
+
Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
+
This is caused by some needed GNOME services not running.
+
This is all fixed by enabling "Launch GNOME services on startup" in
+
the Advanced tab of the Session and Startup settings panel.
+
Alternatively, you can run this command to do the same thing.
+
$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
+
A log-out and re-log will be needed for this to take effect.