summary refs log tree commit diff stats
path: root/system/settings/hardware/audio.nix
blob: b66f9d04895a944f7efafba9c33b0a758f0f0ac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, pkgs, ... }:

{ hardware.pulseaudio = {
    enable = true;
    support32Bit = true;
    daemon.config = {
      flat-volumes = "no";
      avoid-resampling = "yes";
    };
    package = if config.hardware.bluetooth.enable
      then pkgs.pulseaudioFull
      else pkgs.pulseaudio;
  };

  sound.enable = true;

  environment.systemPackages = with pkgs; [
    pamixer
    pavucontrol
  ];
}