2021-07-03 13:39:37 +02:00
|
|
|
# Xfce Desktop Environment {#sec-xfce}
|
|
|
|
|
|
|
|
To enable the Xfce Desktop Environment, set
|
|
|
|
|
|
|
|
```nix
|
|
|
|
services.xserver.desktopManager.xfce.enable = true;
|
|
|
|
services.xserver.displayManager.defaultSession = "xfce";
|
|
|
|
```
|
|
|
|
|
|
|
|
Optionally, *picom* can be enabled for nice graphical effects, some
|
|
|
|
example settings:
|
|
|
|
|
|
|
|
```nix
|
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
fade = true;
|
|
|
|
inactiveOpacity = 0.9;
|
|
|
|
shadow = true;
|
|
|
|
fadeDelta = 4;
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
|
|
|
Some Xfce programs are not installed automatically. To install them
|
|
|
|
manually (system wide), put them into your
|
2021-07-04 02:24:44 +02:00
|
|
|
[](#opt-environment.systemPackages) from `pkgs.xfce`.
|
2021-07-03 13:39:37 +02:00
|
|
|
|
2023-02-08 10:13:22 +01:00
|
|
|
## Thunar {#sec-xfce-thunar-plugins}
|
2022-06-26 16:25:57 +02:00
|
|
|
|
|
|
|
Thunar (the Xfce file manager) is automatically enabled when Xfce is
|
|
|
|
enabled. To enable Thunar without enabling Xfce, use the configuration
|
2023-11-09 21:48:05 +01:00
|
|
|
option [](#opt-programs.thunar.enable) instead of adding
|
2022-06-26 16:25:57 +02:00
|
|
|
`pkgs.xfce.thunar` to [](#opt-environment.systemPackages).
|
2021-07-03 13:39:37 +02:00
|
|
|
|
2022-12-21 21:24:48 +01:00
|
|
|
If you'd like to add extra plugins to Thunar, add them to
|
|
|
|
[](#opt-programs.thunar.plugins). You shouldn't just add them to
|
2022-06-26 16:25:57 +02:00
|
|
|
[](#opt-environment.systemPackages).
|
2021-07-03 13:39:37 +02:00
|
|
|
|
2023-02-08 10:13:22 +01:00
|
|
|
## Troubleshooting {#sec-xfce-troubleshooting}
|
2021-07-03 13:39:37 +02:00
|
|
|
|
|
|
|
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`).
|
|
|
|
|
|
|
|
```plain
|
|
|
|
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
|
2022-12-21 21:45:00 +01:00
|
|
|
fixed by enabling "Launch GNOME services on startup" in the Advanced
|
2021-07-03 13:39:37 +02:00
|
|
|
tab of the Session and Startup settings panel. Alternatively, you can
|
|
|
|
run this command to do the same thing.
|
|
|
|
|
|
|
|
```ShellSession
|
|
|
|
$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
|
|
|
|
```
|
|
|
|
|
2023-02-07 10:48:31 +01:00
|
|
|
It is necessary to log out and log in again for this to take effect.
|