2024-09-07 08:46:55 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
namespace,
|
|
|
|
config,
|
|
|
|
...
|
2025-01-31 01:10:31 +01:00
|
|
|
}:
|
2024-09-07 08:46:55 +02:00
|
|
|
let
|
2025-01-31 01:10:31 +01:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2024-09-07 08:46:55 +02:00
|
|
|
cfg = config.${namespace}.common.audio;
|
|
|
|
in {
|
|
|
|
options.${namespace}.common.audio = { enable = mkEnableOption "whether to enable common audio support and tweaks"; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2025-01-09 17:48:09 +01:00
|
|
|
services.pulseaudio.enable = false;
|
2024-09-07 08:46:55 +02:00
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|