dotfiles/modules/nixos/hardware/audio/default.nix
alejandro-angulo b9b996bd66
Cleanup
Addressed some things nixd complained about
2024-08-03 10:32:02 -07:00

26 lines
456 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.aa.hardware.audio;
in {
options.aa.hardware.audio = {
enable = mkEnableOption "audio";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [pamixer];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}