Skip to content

Commit

Permalink
xfce: delay package selection for pulseaudio volume to nixos modules (#…
Browse files Browse the repository at this point in the history
…23382)

Now there are separate `xfce4.xfce4mixer_pulse` and `xfce4.xfcevolumed_pulse` attributes for PulseAudio versions of these packages, instead of relying on Nixpkgs option. Mind that xfce4-volumed and xfce4-volumed-pulse are actually two separate programs without much overlap.
  • Loading branch information
sorpaas authored and lukateras committed Dec 19, 2017
1 parent d045d62 commit 62a974b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/services/x11/desktop-managers/xfce.nix
Expand Up @@ -5,6 +5,7 @@ with lib;
let

xcfg = config.services.xserver;
pcfg = config.hardware.pulseaudio;
cfg = xcfg.desktopManager.xfce;

in
Expand Down Expand Up @@ -96,8 +97,8 @@ in
pkgs.xfce.xfce4icontheme
pkgs.xfce.xfce4session
pkgs.xfce.xfce4settings
pkgs.xfce.xfce4mixer
pkgs.xfce.xfce4volumed
(if pcfg.enable then pkgs.xfce.xfce4mixer_pulse else pkgs.xfce.xfce4mixer)
(if pcfg.enable then pkgs.xfce.xfce4volumed_pulse else pkgs.xfce.xfce4volumed)
pkgs.xfce.xfce4-screenshooter
pkgs.xfce.xfconf
# This supplies some "abstract" icons such as
Expand Down
11 changes: 4 additions & 7 deletions pkgs/desktops/xfce/default.nix
Expand Up @@ -58,17 +58,14 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
parole = callPackage ./applications/parole.nix { };
ristretto = callPackage ./applications/ristretto.nix { };
terminal = xfce4terminal; # it has changed its name
xfce4mixer = callPackage ./applications/xfce4-mixer.nix {
pulseaudioSupport = config.pulseaudio or false;
};
xfce4mixer = callPackage ./applications/xfce4-mixer.nix { };
xfce4mixer_pulse = callPackage ./applications/xfce4-mixer.nix { pulseaudioSupport = true; };
xfce4notifyd = callPackage ./applications/xfce4-notifyd.nix { };
xfce4taskmanager= callPackage ./applications/xfce4-taskmanager.nix { };
xfce4terminal = callPackage ./applications/terminal.nix { };
xfce4-screenshooter = callPackage ./applications/xfce4-screenshooter.nix { };
xfce4volumed = let
gst = callPackage ./applications/xfce4-volumed.nix { };
pulse = callPackage ./applications/xfce4-volumed-pulse.nix { };
in if config.pulseaudio or false then pulse else gst;
xfce4volumed = callPackage ./applications/xfce4-volumed.nix { };
xfce4volumed_pulse = callPackage ./applications/xfce4-volumed-pulse.nix { };

#### ART from "mirror://xfce/src/art/${p_name}/${ver_maj}/${name}.tar.bz2"

Expand Down

0 comments on commit 62a974b

Please sign in to comment.