2023-03-25 16:28:53 +00:00
|
|
|
{
|
|
|
|
options,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.aa.hardware.audio;
|
|
|
|
in {
|
|
|
|
options.aa.hardware.audio = with types; {
|
|
|
|
enable = mkEnableOption "audio";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2023-07-14 01:24:18 +00:00
|
|
|
environment.systemPackages = with pkgs; [pamixer];
|
2023-03-25 16:28:53 +00:00
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|