1# Xfce Desktop Environment {#sec-xfce}
2
3To enable the Xfce Desktop Environment, set
4
5```nix
6services.xserver.desktopManager.xfce.enable = true;
7services.xserver.displayManager.defaultSession = "xfce";
8```
9
10Optionally, *picom* can be enabled for nice graphical effects, some
11example settings:
12
13```nix
14services.picom = {
15 enable = true;
16 fade = true;
17 inactiveOpacity = 0.9;
18 shadow = true;
19 fadeDelta = 4;
20};
21```
22
23Some Xfce programs are not installed automatically. To install them
24manually (system wide), put them into your
25[](#opt-environment.systemPackages) from `pkgs.xfce`.
26
27## Thunar {#sec-xfce-thunar-plugins}
28
29Thunar (the Xfce file manager) is automatically enabled when Xfce is
30enabled. To enable Thunar without enabling Xfce, use the configuration
31option [](#opt-programs.thunar.enable) instead of simply adding
32`pkgs.xfce.thunar` to [](#opt-environment.systemPackages).
33
34If you'd like to add extra plugins to Thunar, add them to
35[](#opt-programs.thunar.plugins). You shouldn't just add them to
36[](#opt-environment.systemPackages).
37
38## Troubleshooting {#sec-xfce-troubleshooting}
39
40Even after enabling udisks2, volume management might not work. Thunar
41and/or the desktop takes time to show up. Thunar will spit out this kind
42of message on start (look at `journalctl --user -b`).
43
44```plain
45Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
46```
47
48This is caused by some needed GNOME services not running. This is all
49fixed by enabling "Launch GNOME services on startup" in the Advanced
50tab of the Session and Startup settings panel. Alternatively, you can
51run this command to do the same thing.
52
53```ShellSession
54$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
55```
56
57It is necessary to log out and log in again for this to take effect.