2024-06-25 04:04:39 +03:00
|
|
|
{ lib, config, ... }: with lib; let
|
|
|
|
cfg = config.module.desktop.sound;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
module.desktop.sound.enable = mkEnableOption "Sound.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
2024-06-30 03:56:48 +03:00
|
|
|
enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
2024-06-25 04:04:39 +03:00
|
|
|
};
|
2024-03-28 07:51:33 +03:00
|
|
|
};
|
|
|
|
}
|