nixos-config/modules/pipewire.nix

36 lines
743 B
Nix
Raw Normal View History

{ 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;
2021-11-21 13:11:52 +01:00
security.rtkit.enable = true;
2021-07-10 12:44:09 +02:00
services.pipewire = {
enable = true;
pulse.enable = true;
jack.enable = true;
2021-07-10 12:44:09 +02:00
alsa = {
enable = true;
support32Bit = true;
};
media-session = {
config = {
bluez-monitor = {
"bluez5.enable-hw-volume" = true;
};
};
};
};
2021-07-10 12:44:09 +02:00
environment.systemPackages = with pkgs; [
2021-11-29 17:06:41 +01:00
unstable.helvum # patch panel
2021-07-10 12:44:09 +02:00
pavucontrol
pulseaudio # pacmd and pactl
];
hardware.bluetooth.enable = lib.mkDefault bluetoothSupport;
services.blueman.enable = lib.mkDefault bluetoothSupport;
}