all repos — nixfiles @ a51c068086b6e135ae2e1067f3d9aacc0b6c8ae8

System and user configuration, managed by nix and home-manager

system/settings/hardware/audio.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, pkgs, ... }:

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

  sound.enable = true;

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