Colin
d2f6648bce
note that this completely breaks the systemd backend (though easily fixable if wanted)
41 lines
1023 B
Nix
41 lines
1023 B
Nix
{ ... }:
|
|
{
|
|
sane.programs.wireplumber = {
|
|
sandbox.method = "bwrap";
|
|
sandbox.whitelistDbus = [
|
|
# i think this isn't strictly necessary; it just wants to ask the portal for realtime perms
|
|
# "system"
|
|
"user"
|
|
];
|
|
sandbox.whitelistAudio = true;
|
|
sandbox.extraPaths = [
|
|
# i think these video inputs (for e.g. webcam) are optional.
|
|
"/dev/media0"
|
|
"/dev/snd"
|
|
"/dev/video0"
|
|
"/dev/video1"
|
|
"/dev/video2"
|
|
"/run/systemd"
|
|
"/run/udev"
|
|
"/sys/class/sound"
|
|
"/sys/class/video4linux"
|
|
"/sys/devices"
|
|
];
|
|
|
|
suggestedPrograms = [ "alsa-ucm-conf" ];
|
|
|
|
persist.byStore.plaintext = [
|
|
# persist per-device volume levels
|
|
".local/state/wireplumber"
|
|
];
|
|
|
|
services.wireplumber = {
|
|
description = "wireplumber: pipewire Multimedia Service Session Manager";
|
|
after = [ "pipewire.service" ];
|
|
bindsTo = [ "pipewire.service" ];
|
|
wantedBy = [ "pipewire.service" ];
|
|
command = "wireplumber";
|
|
};
|
|
};
|
|
}
|