voidconf/modules/audio.nix

21 lines
463 B
Nix
Raw Normal View History

2023-12-16 19:26:15 +01:00
{ lib, config, ... }:
with lib;
2024-02-17 18:49:37 +01:00
let cfg = config.voidconf.audio;
2023-12-16 19:26:15 +01:00
in {
2024-02-17 18:49:37 +01:00
options.voidconf.audio = {
2023-12-16 19:26:15 +01:00
enable = mkEnableOption "Enable all the audio daemons";
};
config = mkIf cfg.enable {
sound.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
};
}