nix/module/Sound.nix
2024-11-06 01:07:30 +03:00

23 lines
389 B
Nix

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