summaryrefslogtreecommitdiff
path: root/nixos/modules/system/audio/default.nix
blob: 66ab0874f78183b8b5af94603be1e0c43c143f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }:

{
  # Real-time scheduling grants for the audio stack.
  security.rtkit.enable = true;

  # PipeWire is the desktop audio server; the PulseAudio shim keeps old
  # clients (e.g. MPD's "pulse" output) working without a real PulseAudio.
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
  };

  environment.systemPackages = with pkgs; [
    brightnessctl
    pamixer
    playerctl
  ];
}