2023-03-25 16:28:53 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-08-03 17:32:02 +00:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
2023-03-25 16:28:53 +00:00
|
|
|
cfg = config.aa.hardware.audio;
|
|
|
|
in {
|
2024-08-03 17:32:02 +00:00
|
|
|
options.aa.hardware.audio = {
|
2023-03-25 16:28:53 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|