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