1
1
Fork 0

pipewire: add system option

This commit is contained in:
Myned 2025-03-29 18:15:08 -05:00
parent 6296dfbbe0
commit 6a02e86599
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -6,7 +6,11 @@
with lib; let
cfg = config.custom.services.pipewire;
in {
options.custom.services.pipewire.enable = mkOption {default = false;};
options.custom.services.pipewire = {
enable = mkOption {default = false;};
pulseaudio = mkOption {default = true;};
system = mkOption {default = false;};
};
config = mkIf cfg.enable ({
#!! Realtime priority may cause desync
@ -17,7 +21,8 @@ in {
# https://gitlab.freedesktop.org/pipewire/pipewire
pipewire = {
enable = true;
pulse.enable = true;
systemWide = cfg.system;
pulse.enable = cfg.pulseaudio;
alsa = {
enable = true;