From cd4a00381669c4c90548fde24b19f1ebb608ea98 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 26 Jun 2024 20:29:25 +0200 Subject: [PATCH] common: switch from pulseaudio to pipewire --- home/services/mpd.nix | 4 ++-- hosts/common.nix | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/home/services/mpd.nix b/home/services/mpd.nix index 85ebb59..0179d4d 100644 --- a/home/services/mpd.nix +++ b/home/services/mpd.nix @@ -16,8 +16,8 @@ } audio_output { - type "pulse" - name "PulseAudio" + type "pipewire" + name "PipeWire Sound Server" } ''; }; diff --git a/hosts/common.nix b/hosts/common.nix index 5e2a663..4a82213 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -431,13 +431,14 @@ in { sqlite-web ]); - sound = { + security.rtkit.enable = !config.machineVars.headless; + services.pipewire = { enable = !config.machineVars.headless; - mediaKeys.enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; }; - hardware.pulseaudio.enable = !config.machineVars.headless; - security.sudo.extraConfig = let sudoLecture = pkgs.writeText "sudo-lecture.txt" (extendedLib.termColors.front.red "Be careful or something, idk...\n"); in ''