anchor.diff:        '';
       };
   
  +    hardware.pulseaudio.package = mkOption {
  +      default = pkgs.pulseaudio;
  +      example = "pkgs.pulseaudio.override { jackaudioSupport = true; }";
  +      description = ''
  +        The PulseAudio derivation to use.  This can be used to enable
  +        features (such as JACK support) that are not enabled in the
  +        default PulseAudio in Nixpkgs.
  +      '';
  +    };
  +
     };
     
   
     config = mkIf cfg.enable {
   
       environment.systemPackages =
  -      [ pkgs.pulseaudio ];
  +      [ cfg.package ];
   
       environment.etc = mkAlways (
         [ # Create pulse/client.conf even if PulseAudio is disabled so
  
positive.code:         }
  
          { target = "pulse/default.pa";
            source = "${pkgs.pulseaudio}/etc/pulse/default.pa";
          }
  
          { target = "pulse/system.pa";
            source = "${pkgs.pulseaudio}/etc/pulse/system.pa";
          }
  
        ]);
  
negative.code:           source = pkgs.writeText "client.conf"
              ''
                autospawn=${if cfg.enable then "yes" else "no"}
                ${optionalString cfg.enable ''
                  daemon-binary=${cfg.package}/bin/pulseaudio
                ''}
              '';
          }
          
  