nix-config/modules/pipewire.nix

44 lines
900 B
Nix
Raw Normal View History

2023-01-22 14:17:51 +01:00
{
lib,
pkgs,
...
}: {
environment.systemPackages = with pkgs; [pulseaudio pulsemixer];
hardware.pulseaudio.enable = lib.mkForce false;
hardware.bluetooth.enable = true;
2023-01-22 14:53:39 +01:00
hardware.bluetooth.settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
2023-01-22 14:53:39 +01:00
};
2023-01-22 14:17:51 +01:00
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
2023-01-22 14:53:39 +01:00
jack.enable = true;
2023-01-22 14:17:51 +01:00
pulse.enable = true;
config = {
pipewire."context.properties"."default.clock.allowed-rates" = [
44100
48000
88200
96000
176400
192000
358000
384000
716000
768000
];
pipewire-pulse."stream.properties"."resample.quality" = 15;
client."stream.properties"."resample.quality" = 15;
client-rt."stream.properties"."resample.quality" = 15;
};
};
sound.enable = true;
}