{ config, lib, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.audio.enable = mkOption { type = types.bool; default = false; description = "audio settings"; }; config = mkIf config.smayzy.audio.enable { services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; }; }; }