From d9cac95878cde76a4bbce7f4790544f45f724357 Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Sun, 6 Oct 2019 12:00:00 +0000 Subject: [PATCH] nixos/xfce4-14: add xfce4-volumed-pulse when not using the desktop xfce4-volumed-pulse is not abandoned, but is superseded by a panel plugin which is not available when not using the desktop. Fixes: volume up/down keys support --- nixos/modules/services/x11/desktop-managers/xfce4-14.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/desktop-managers/xfce4-14.nix b/nixos/modules/services/x11/desktop-managers/xfce4-14.nix index d75a5a141042..ffc99172e795 100644 --- a/nixos/modules/services/x11/desktop-managers/xfce4-14.nix +++ b/nixos/modules/services/x11/desktop-managers/xfce4-14.nix @@ -91,7 +91,11 @@ in ++ optional config.powerManagement.enable xfce4-power-manager ++ optionals config.hardware.pulseaudio.enable [ pavucontrol - xfce4-pulseaudio-plugin + # volume up/down keys support: + # xfce4-pulseaudio-plugin includes all the functionalities of xfce4-volumed-pulse + # but can only be used with xfce4-panel, so for no-desktop usage we still include + # xfce4-volumed-pulse + (if cfg.noDesktop then xfce4-volumed-pulse else xfce4-pulseaudio-plugin) ] ++ optionals cfg.enableXfwm [ xfwm4 xfwm4-themes