aboutsummaryrefslogblamecommitdiff
path: root/hosts/common/desktop/sound.nix
blob: c72875dd1af12220c7771271899e552b4dba1018 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                         

                      
 

                                      



                                                                                 
 






                                                         
    
                                     
 
{pkgs, config, lib, ...}:

{
  sound.enable = true;

  security = { rtkit.enable = true; };

  environment.systemPackages = with pkgs; [
    # We install it to get access to pactl. It isn't enabled or run as a service.
    pulseaudio
  ];

  services.pipewire = {
    enable = true;
    # Compatibility shims, adjust according to your needs
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
    jack.enable = true;
  };
  hardware.pulseaudio.enable = false;
}