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

26 lines
456 B
Nix
Raw Permalink Normal View History

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