dotfiles/modules/nixos/hardware/audio/default.nix

26 lines
451 B
Nix
Raw Normal View History

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;
};
};
}