2021-08-21 15:47:17 +02:00
|
|
|
{ config, lib, modulesPath, pkgs, ... }:
|
2021-07-10 12:44:09 +02:00
|
|
|
let
|
|
|
|
bluetoothSupport = config.sbruder.full;
|
|
|
|
in
|
|
|
|
lib.mkIf config.sbruder.gui.enable {
|
|
|
|
sound.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
|
2021-11-08 18:04:14 +01:00
|
|
|
media-session = {
|
|
|
|
config = {
|
|
|
|
bluez-monitor = {
|
|
|
|
"bluez5.enable-hw-volume" = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-08-21 15:47:17 +02:00
|
|
|
|
2021-07-10 12:44:09 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pavucontrol
|
|
|
|
pulseaudio # pacmd and pactl
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = lib.mkDefault bluetoothSupport;
|
|
|
|
services.blueman.enable = lib.mkDefault bluetoothSupport;
|
|
|
|
}
|