blob: d37d3a41aa17ddb32c61a462eb389796242a95f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, pkgs, ... }:
let cfg = config.libkookie.audio;
in
{
sound.enable = cfg.enable;
# TODO: make jack work ;_;
# services.jack.jackd.enable = cfg.jack;
hardware.pulseaudio =
let bt = config.hardware.bluetooth.enable;
in
with pkgs;
{
enable = true;
support32Bit = true;
zeroconf.discovery.enable = cfg.discovery;
package = if bt then pulseaudioFull else pulseaudio;
extraModules = if bt then [ pulseaudio-modules-bt ] else [];
};
}
|