{
config,
lib,
pkgs,
...
}: let
cfg = config.roles.audio;
in {
options.roles.audio = {
enable = lib.mkEnableOption "enable audio";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
pavucontrol
];
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
jack.enable = true;
pulse.enable = true;
};
};
}