anchor.diff:  { config, pkgs, ... }:
   
   with pkgs.lib;
  +
  +let cfg = config.hardware.pulseaudio; in
   
   {
   
  
positive.code:   };
    
  
    config = mkIf config.hardware.pulseaudio.enable {
  
      environment.systemPackages =
        [ pkgs.pulseaudio ];
  
      environment.etc =
        [ # Write an /etc/asound.conf that causes all ALSA applications to
          # be re-routed to the PulseAudio server through ALSA's Pulse
          # plugin.
  
negative.code:               }
              '';
          }
  
          { target = "pulse/default.pa";
            source = "${pkgs.pulseaudio}/etc/pulse/default.pa";
          }
  
          { target = "pulse/system.pa";
            source = "${pkgs.pulseaudio}/etc/pulse/system.pa";
          }
  
        ]);
  
      # Allow PulseAudio to get realtime priority using rtkit.
      security.rtkit.enable = true;
  