nix/module/Sound.nix
2024-08-01 05:14:15 +03:00

21 lines
406 B
Nix

{ lib, config, ... }: with lib; let
cfg = config.module.desktop.sound;
in {
options = {
module.desktop.sound.enable = mkEnableOption "Sound.";
};
config = mkIf cfg.enable {
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
};
}