19 lines
515 B
Nix
19 lines
515 B
Nix
|
# administer with pw-cli, pw-mon, pw-top commands
|
||
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.sane.programs.pipewire;
|
||
|
in
|
||
|
{
|
||
|
services.pipewire = lib.mkIf cfg.enabled {
|
||
|
enable = true;
|
||
|
package = cfg.package;
|
||
|
alsa.enable = true;
|
||
|
alsa.support32Bit = true; # ??
|
||
|
# emulate pulseaudio for legacy apps (e.g. sxmo-utils)
|
||
|
pulse.enable = true;
|
||
|
# TODO: try:
|
||
|
# socketActivation = false;
|
||
|
};
|
||
|
systemd.user.services."pipewire".wantedBy = lib.optionals cfg.enabled [ "graphical-session.target" ];
|
||
|
}
|