nixos-config/pulseaudio.nix

32 lines
669 B
Nix
Raw Normal View History

2020-07-14 14:47:09 +00:00
{ config, pkgs, ... }:
{
hardware.pulseaudio = {
enable = true;
zeroconf.discovery.enable = true;
daemon.config = {
flat-volumes = "no";
avoid-resampling = "yes";
resample-method = "speex-float-10";
default-sample-format = "s32le";
default-sample-rate = "96000";
};
# package = pkgs.pulseaudio-hsphfpd;
package = pkgs.pulseaudioFull;
extraModules = [ pkgs.pulseaudio-modules-bt ];
2020-07-14 14:47:09 +00:00
};
# hardware.bluetooth.hsphfpd.enable = true;
2020-11-12 13:09:28 +00:00
users.extraUsers.gebner.extraGroups = [ "bluetooth" ];
2020-10-11 10:06:18 +00:00
services.pipewire = {
enable = true;
};
2020-07-16 09:49:07 +00:00
# causes recompilation
# nixpkgs.config.pulseaudio = true;
2020-07-15 09:48:32 +00:00
2020-07-14 14:47:09 +00:00
}