1<chapter xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 version="5.0"
5 xml:id="sec-xfce">
6
7 <title>Xfce Desktop Environment</title>
8
9 <para>
10 To enable the Xfce Desktop Environment, set
11 <programlisting>
12services.xserver.desktopManager = {
13 xfce.enable = true;
14 default = "xfce";
15};
16 </programlisting>
17 </para>
18
19 <para>
20 Optionally, <emphasis>compton</emphasis>
21 can be enabled for nice graphical effects, some example settings:
22 <programlisting>
23services.compton = {
24 enable = true;
25 fade = true;
26 inactiveOpacity = "0.9";
27 shadow = true;
28 fadeDelta = 4;
29};
30 </programlisting>
31 </para>
32
33 <para>
34 Some Xfce programs are not installed automatically.
35 To install them manually (system wide), put them into your
36 <literal>environment.systemPackages</literal>.
37 </para>
38
39 <para>
40 NixOS’s default <emphasis>display manager</emphasis> is SLiM.
41 (DM is the program that provides a graphical login prompt
42 and manages the X server.)
43 You can, for example, select KDE’s
44 <command>sddm</command> instead:
45 <programlisting>
46services.xserver.displayManager.sddm.enable = true;
47 </programlisting>
48 </para>
49
50 <simplesect>
51 <title>Thunar Volume Support</title>
52
53 <para>
54 To enable
55 <emphasis>Thunar</emphasis>
56 volume support, put
57 <programlisting>
58services.xserver.desktopManager.xfce.enable = true;
59 </programlisting>
60 into your <emphasis>configuration.nix</emphasis>.
61 </para>
62
63 </simplesect>
64
65 <simplesect>
66 <title>Polkit Authentication Agent</title>
67
68 <para>
69 There is no authentication agent automatically installed alongside
70 Xfce. To allow mounting of local (non-removable) filesystems, you
71 will need to install one.
72
73 Installing <emphasis>polkit_gnome</emphasis>, a rebuild, logout and
74 login did the trick.
75 </para>
76
77 </simplesect>
78
79 <simplesect>
80 <title>Troubleshooting</title>
81
82 <para>
83 Even after enabling udisks2, volume management might not work.
84 Thunar and/or the desktop takes time to show up.
85
86 Thunar will spit out this kind of message on start
87 (look at <command>journalctl --user -b</command>).
88
89 <programlisting>
90Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
91 </programlisting>
92
93 This is caused by some needed GNOME services not running.
94 This is all fixed by enabling "Launch GNOME services on startup" in
95 the Advanced tab of the Session and Startup settings panel.
96 Alternatively, you can run this command to do the same thing.
97 <programlisting>
98$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
99 </programlisting>
100 A log-out and re-log will be needed for this to take effect.
101 </para>
102
103 </simplesect>
104
105</chapter>