aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/audio.nix
blob: 9de67877142af5f87d3eed295148a6ac0596762b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  pkgs,
  config,
  lib,
  ...
}: let
  cfg = config.collinux.services.audio;
in
  lib.mkIf cfg.enable {
    security.rtkit.enable = true;
    services.pipewire = {
      enable = true;
      wireplumber.enable = true;
      alsa.enable = true;
      pulse.enable = false;
    };

    boot.blacklistedKernelModules = ["snd_seq_dummy"]; # remove extraneous alsa midi devices

    environment.systemPackages = with pkgs; [pwvucontrol qpwgraph];
  }