Added audio config

This commit is contained in:
Alejandro Angulo 2023-03-25 09:28:53 -07:00
parent 58118e7ab8
commit a190c35901
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 28 additions and 15 deletions

View file

@ -0,0 +1,24 @@
{
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 {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}