nix-conf/modules/hardware/audio/default.nix

30 lines
576 B
Nix
Raw Normal View History

2023-02-23 20:34:35 +01:00
{ options, config, pkgs, lib, ... }:
with lib;
#with lib.internal;
let cfg = config.custom.hardware.audio;
in
{
options.custom.hardware.audio = with types; {
enable = mkBoolOpt false "Whether or not to enable audio support.";
};
config = mkIf cfg.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
2023-03-11 11:07:20 +01:00
wireplumber.enable = true;
2023-02-23 20:34:35 +01:00
};
hardware.pulseaudio.enable = mkForce false;
};
}