common: switch from pulseaudio to pipewire

This commit is contained in:
2024-06-26 20:29:25 +02:00
parent 4b9343fc3e
commit cd4a003816
2 changed files with 7 additions and 6 deletions

View File

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