parent
02817098e0
commit
9835b8e8ff
@ -0,0 +1,10 @@ |
||||
{ pkgs, ... }: |
||||
|
||||
{ |
||||
home.packages = with pkgs; |
||||
[ |
||||
paprefs |
||||
pasystray |
||||
pavucontrol |
||||
]; |
||||
} |
@ -0,0 +1,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 []; |
||||
}; |
||||
} |
@ -0,0 +1,16 @@ |
||||
{ config, lib, pkgs, home-manager, ... } @ args: |
||||
|
||||
let cfg = config.libkookie.audio; |
||||
in |
||||
with lib; |
||||
{ |
||||
options.libkookie.audio = { |
||||
enable = mkEnableOption "audio server handling"; |
||||
|
||||
discovery = mkEnableOption "pulseaudio auto discovery"; |
||||
|
||||
jack = mkEnableOption "jack audio server handling"; |
||||
}; |
||||
|
||||
config = mkIf cfg.enable (import ./core.nix args); |
||||
} |
Loading…
Reference in new issue