nix_config/sys/modules/audio.nix

30 lines
457 B
Nix
Raw Permalink Normal View History

2024-12-02 21:23:52 +01:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.sys.audio;
in {
options.local.sys.audio = {
enable = mkEnableOption "audio settings";
};
config = mkIf cfg.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
jack.enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
};
}