Switch to pipewire

This commit is contained in:
Valentin Brandl 2023-12-03 14:01:10 +01:00
parent 44d9dc8379
commit 2cc97bf138
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -26,17 +26,17 @@ inputs:
i18n.defaultLocale = "en_GB.UTF-8"; i18n.defaultLocale = "en_GB.UTF-8";
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
sound.enable = true; #sound.enable = true;
hardware = { hardware = {
# TODO: remove # TODO: remove
enableAllFirmware = true; enableAllFirmware = true;
pulseaudio = { #pulseaudio = {
# TODO: pipewire # TODO: pipewire
enable = true; #enable = true;
# stop mumble from muting other processes # stop mumble from muting other processes
extraConfig = "unload-module module-role-cork"; #extraConfig = "unload-module module-role-cork";
}; #};
opengl = { opengl = {
enable = true; enable = true;
# driSupport = true; # driSupport = true;
@ -66,9 +66,13 @@ inputs:
# Enable CUPS to print documents. # Enable CUPS to print documents.
printing.enable = true; printing.enable = true;
pipewire = { pipewire = {
enable = false; enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true;
}; };
# required for nextcloud # required for nextcloud
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
@ -110,6 +114,18 @@ inputs:
"L+ /lib64/ld-linux-x86-64.so.2 - - - - ${pkgs.glibc}/lib64/ld-linux-x86-64.so.2" "L+ /lib64/ld-linux-x86-64.so.2 - - - - ${pkgs.glibc}/lib64/ld-linux-x86-64.so.2"
]; ];
# pipewire bluetooth config (https://nixos.wiki/wiki/PipeWire#Bluetooth_Configuration)
environment.etc = {
"wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
bluez_monitor.properties = {
["bluez5.enable-sbc-xq"] = true,
["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = true,
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
}
'';
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty
arandr arandr
@ -205,6 +221,9 @@ inputs:
sudo = { sudo = {
package = pkgs.sudo.override { withInsults = true; }; package = pkgs.sudo.override { withInsults = true; };
}; };
# rtkit is optional but recommended for pipewire
rtkit.enable = true;
}; };
} }