tv: install pavucontrol only when xserver is enabled

This commit is contained in:
tv 2016-01-14 15:51:41 +01:00
parent 7c97b64549
commit f648c930fe
2 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,11 @@ in
#"pulse/client.conf".source = mkForce clientConf; #"pulse/client.conf".source = mkForce clientConf;
"pulse/default.pa".source = configFile; "pulse/default.pa".source = configFile;
}; };
systemPackages = [ pkg ]; systemPackages = [
pkg
] ++ optionals config.services.xserver.enable [
pkgs.pavucontrol
];
}; };
# Allow PulseAudio to get realtime priority using rtkit. # Allow PulseAudio to get realtime priority using rtkit.

View File

@ -37,7 +37,6 @@ let
pkgs.ff pkgs.ff
pkgs.gitAndTools.qgit pkgs.gitAndTools.qgit
pkgs.mpv pkgs.mpv
pkgs.pavucontrol
pkgs.slock pkgs.slock
pkgs.sxiv pkgs.sxiv
pkgs.xsel pkgs.xsel