{ config, lib, ... }:

{
    hardware.pulseaudio.enable = lib.mkForce false;  # disable pulseAudio
    security.rtkit.enable = true;
    services.pipewire = {
        enable = true;
        alsa = {
            enable = true;
            support32Bit = true;
        };
        pulse.enable = true;
        jack.enable = true;
    };

    # Add user to networkmanager group
    users.users.${config.common.username}.extraGroups = [ "audio" ];
}
