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 ''