diff options
author | tv <tv@krebsco.de> | 2016-01-14 15:51:41 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-01-14 15:51:41 +0100 |
commit | 17788b3b28964b735ede48a6cc1a8f27faafc745 (patch) | |
tree | 1f1afd21d22f62fafd673a489d47f793e8cf6183 /tv/2configs | |
parent | 6af17b1d4239199001f4d0b1ae0136d0e06910bd (diff) |
tv: install pavucontrol only when xserver is enabled
Diffstat (limited to 'tv/2configs')
-rw-r--r-- | tv/2configs/pulse.nix | 6 | ||||
-rw-r--r-- | tv/2configs/xserver/default.nix | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tv/2configs/pulse.nix b/tv/2configs/pulse.nix index 55ee8d8..e1894ca 100644 --- a/tv/2configs/pulse.nix +++ b/tv/2configs/pulse.nix @@ -45,7 +45,11 @@ in #"pulse/client.conf".source = mkForce clientConf; "pulse/default.pa".source = configFile; }; - systemPackages = [ pkg ]; + systemPackages = [ + pkg + ] ++ optionals config.services.xserver.enable [ + pkgs.pavucontrol + ]; }; # Allow PulseAudio to get realtime priority using rtkit. diff --git a/tv/2configs/xserver/default.nix b/tv/2configs/xserver/default.nix index facde4e..5cd17aa 100644 --- a/tv/2configs/xserver/default.nix +++ b/tv/2configs/xserver/default.nix @@ -37,7 +37,6 @@ let pkgs.ff pkgs.gitAndTools.qgit pkgs.mpv - pkgs.pavucontrol pkgs.slock pkgs.sxiv pkgs.xsel |