{ options, config, lib, pkgs, ... }: with lib; with lib.frajul; let cfg = config.hardware.audio; in { options.hardware.audio = with types; { enable = mkBoolOpt false "Enable pipewire"; }; config = mkIf cfg.enable { security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; wireplumber.enable = true; jack.enable = true; pulse.enable = true; }; programs.noisetorch.enable = true; environment.systemPackages = with pkgs; [ pavucontrol ]; }; }