-
Notifications
You must be signed in to change notification settings - Fork 1
/
multimedia.nix
57 lines (51 loc) · 1.19 KB
/
multimedia.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
alsaLib
alsaPlugins
alsaUtils
ardour
audacity
blueman
calf
ffmpeg
handbrake
jack2Full
ladspaPlugins
libdvdcss
libdvdnav
libdvdread
mplayer
pamixer # cli tools for pulseaudio
paprefs
pavucontrol # volume control
puredata
qjackctl
vlc
];
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
hardware.pulseaudio = {
enable = true;
extraConfig = ''
load-module module-udev-detect tsched=0
load-module module-bluetooth-policy
load-module module-bluetooth-discover
load-module module-switch-on-connect
### Enable Echo/Noise-Cancellation
load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0 digital_gain_control=1" source_name=echoCancel_source sink_name=echoCancel_sink
set-default-source echoCancel_source
set-default-sink echoCancel_sink
'';
extraModules = [
pkgs.pulseaudio-modules-bt
];
daemon.config = {
avoid-resampling = "yes";
default-sample-rate = 48000;
};
support32Bit = true;
};
}