21 lines
469 B
Nix
21 lines
469 B
Nix
|
{ lib, config, ... }:
|
||
|
with lib;
|
||
|
let cfg = config.voidcruiser.audio;
|
||
|
in {
|
||
|
options.voidcruiser.audio = {
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|