common: switch from pulseaudio to pipewire

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-26 20:29:25 +02:00
parent 4b9343fc3e
commit cd4a003816
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 7 additions and 6 deletions

View File

@ -16,8 +16,8 @@
} }
audio_output { audio_output {
type "pulse" type "pipewire"
name "PulseAudio" name "PipeWire Sound Server"
} }
''; '';
}; };

View File

@ -431,13 +431,14 @@ in {
sqlite-web sqlite-web
]); ]);
sound = { security.rtkit.enable = !config.machineVars.headless;
services.pipewire = {
enable = !config.machineVars.headless; 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 security.sudo.extraConfig = let
sudoLecture = pkgs.writeText "sudo-lecture.txt" (extendedLib.termColors.front.red "Be careful or something, idk...\n"); sudoLecture = pkgs.writeText "sudo-lecture.txt" (extendedLib.termColors.front.red "Be careful or something, idk...\n");
in '' in ''