blob: 85232f6c9726b423476bb06b467da04b195803d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
pkgs,
config,
lib,
...
}: let
cfg = config.collinux.system.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];
users.users.${config.collinux.user.name}.extraGroups = ["audio" "pipewire"];
}
|