NixOS-Config/nixos/desktop/pipewire.nix
2024-08-24 22:16:51 -04:00

27 lines
591 B
Nix

{pkgs, ...}: {
# Enabling sound
sound.enable = true;
# Enable Pipewire
services = {
pipewire = {
enable = true;
audio.enable = true;
wireplumber = {
enable = true;
configPackages = [
(pkgs.writeTextDir "share/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf" ''
wireplumber.settings = { bluetooth.autoswitch-to-headset-profile = false }
'')
];
};
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
#jack.enable = true;
};
};
}