20 lines
429 B
Nix
20 lines
429 B
Nix
{ 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 = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
};
|
|
}
|