pulseaudio: select correct outputs
Original fixes by ttuegel and peterhoeg.
This commit is contained in:
parent
b465dc202f
commit
d619a75da1
|
@ -98,9 +98,9 @@ in {
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pulseaudioLight.out;
|
default = pulseaudioLight;
|
||||||
defaultText = "pkgs.pulseaudioLight.out";
|
defaultText = "pkgs.pulseaudioLight";
|
||||||
example = literalExample "pkgs.pulseaudioFull.out";
|
example = literalExample "pkgs.pulseaudioFull";
|
||||||
description = ''
|
description = ''
|
||||||
The PulseAudio derivation to use. This can be used to enable
|
The PulseAudio derivation to use. This can be used to enable
|
||||||
features (such as JACK support, Bluetooth) via the
|
features (such as JACK support, Bluetooth) via the
|
||||||
|
@ -130,7 +130,7 @@ in {
|
||||||
source = clientConf;
|
source = clientConf;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.pulseaudio.configFile = mkDefault "${cfg.package.out}/etc/pulse/default.pa";
|
hardware.pulseaudio.configFile = mkDefault "${getBin cfg.package}/etc/pulse/default.pa";
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf cfg.enable {
|
(mkIf cfg.enable {
|
||||||
|
@ -158,7 +158,7 @@ in {
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${cfg.package.out}/bin/pulseaudio --daemonize=no";
|
ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -195,7 +195,7 @@ in {
|
||||||
environment.PULSE_RUNTIME_PATH = stateDir;
|
environment.PULSE_RUNTIME_PATH = stateDir;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${cfg.package.out}/bin/pulseaudio --daemonize=no --log-level=${cfg.daemon.logLevel} --system -n --file=${cfg.configFile}";
|
ExecStart = "${getBin cfg.package}/bin/pulseaudio --daemonize=no --log-level=${cfg.daemon.logLevel} --system -n --file=${cfg.configFile}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -111,7 +111,7 @@ in
|
||||||
# Load PulseAudio module for routing support.
|
# Load PulseAudio module for routing support.
|
||||||
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
|
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
|
||||||
${optionalString config.hardware.pulseaudio.enable ''
|
${optionalString config.hardware.pulseaudio.enable ''
|
||||||
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
|
${getBin config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
|
||||||
''}
|
''}
|
||||||
|
|
||||||
# Start KDE.
|
# Start KDE.
|
||||||
|
|
|
@ -39,7 +39,7 @@ in
|
||||||
# Load PulseAudio module for routing support.
|
# Load PulseAudio module for routing support.
|
||||||
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
|
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
|
||||||
${optionalString config.hardware.pulseaudio.enable ''
|
${optionalString config.hardware.pulseaudio.enable ''
|
||||||
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
|
${getBin config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
|
||||||
''}
|
''}
|
||||||
|
|
||||||
exec "${kde5.startkde}"
|
exec "${kde5.startkde}"
|
||||||
|
|
Loading…
Reference in New Issue