2023-05-28 02:00:10 +02:00
|
|
|
{ pkgs, ... }: {
|
2023-01-10 02:38:06 +01:00
|
|
|
security.rtkit.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
2023-05-28 02:00:10 +02:00
|
|
|
|
2023-01-10 02:38:06 +01:00
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Volume controls
|
2023-05-28 02:00:10 +02:00
|
|
|
environment.shellAliases =
|
|
|
|
let pactl = "${pkgs.pulseaudio}/bin/pactl";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# Relative
|
|
|
|
"v-up" = "${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
|
|
|
"v-down" = "${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
2023-01-10 02:38:06 +01:00
|
|
|
|
2023-05-28 02:00:10 +02:00
|
|
|
# Absolute
|
|
|
|
"v-min" = "${pactl} set-sink-volume @DEFAULT_SINK@ 0%";
|
|
|
|
"v-mid" = "${pactl} set-sink-volume @DEFAULT_SINK@ 50%";
|
|
|
|
"v-max" = "${pactl} set-sink-volume @DEFAULT_SINK@ 100%";
|
|
|
|
};
|
2023-01-10 02:38:06 +01:00
|
|
|
}
|