audio: also kinda work on pure wayland systems
This commit is contained in:
parent
6d50ac7797
commit
f50629267b
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
cfg = config.c3d2.audioStreaming;
|
||||
isGraphical = config.services.xserver.enable || config.services.xserver.displayManager.defaultSession != null;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -15,7 +16,7 @@ in
|
|||
} ];
|
||||
};
|
||||
|
||||
environment.systemPackages = lib.mkIf config.services.xserver.enable (with pkgs; [
|
||||
environment.systemPackages = lib.mkIf isGraphical (with pkgs; [
|
||||
paprefs
|
||||
pavucontrol
|
||||
# https://wiki.archlinux.org/title/PulseAudio/Examples#PulseAudio_over_network
|
||||
|
@ -45,7 +46,7 @@ in
|
|||
};
|
||||
|
||||
# required for paprefs to be able to save
|
||||
programs.dconf = lib.mkIf config.services.xserver.enable {
|
||||
programs.dconf = lib.mkIf isGraphical {
|
||||
enable = true;
|
||||
profiles.user.databases = [{
|
||||
settings."org/freedesktop/pulseaudio/module-groups/zeroconf-discover" = {
|
||||
|
|
Loading…
Reference in New Issue