25 lines
396 B
Nix
25 lines
396 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|