switch to wireplumber, fix notifications, use playerctl for media

This commit is contained in:
notgne2 2022-01-17 11:00:00 -07:00
parent 26a8e34a59
commit a871d120f5
No known key found for this signature in database
GPG key ID: BB661E172B42A7F8
3 changed files with 34 additions and 80 deletions

View file

@ -21,32 +21,9 @@ in
alsa.support32Bit = lib.mkDefault true;
pulse.enable = lib.mkDefault true;
config.pipewire-pulse = {
"context.modules" = [
{
"args" = { };
"flags" = [ "ifexists" "nofail" ];
"name" = "libpipewire-module-rtkit";
}
{ "name" = "libpipewire-module-protocol-native"; }
{ "name" = "libpipewire-module-client-node"; }
{ "name" = "libpipewire-module-adapter"; }
{ "name" = "libpipewire-module-metadata"; }
{
"args" = {
"server.address" = [ "unix:native" "tcp:4713" ];
"vm.overrides" = { "pulse.min.quantum" = "1024/48000"; };
};
"name" = "libpipewire-module-protocol-pulse";
}
];
"context.properties" = { };
"context.spa-libs" = {
"audio.convert.*" = "audioconvert/libspa-audioconvert";
"support.*" = "support/libspa-support";
};
"stream.properties" = { };
};
media-session.enable = lib.mkDefault false;
wireplumber.enable = lib.mkDefault true;
media-session.config.bluez-monitor = {
properties = {
"bluez5.codecs" = [ "sbc" "aac" "ldac" "aptx" "aptx_hd" ];

View file

@ -79,7 +79,7 @@ in
CPU_SCALING_MIN_FREQ_ON_AC = lib.mkDefault 0;
CPU_SCALING_MAX_FREQ_ON_BAT = lib.mkDefault 9999999;
CPU_SCALING_MAX_FREQ_ON_AC = lib.mkDefault 9999999;
CPU_SCALING_MAX_FREQ_ON_AC = lib.mkDefault 9999999;
};
};
@ -196,6 +196,7 @@ in
# Shit breaks without this lol
programs.dconf.enable = lib.mkDefault true;
services.dbus.packages = with pkgs; [ gnome3.dconf ];
# better default swap
boot.kernel.sysctl = { "vm.swappiness" = lib.mkDefault 45; };