pipewire: add system option
This commit is contained in:
parent
6296dfbbe0
commit
6a02e86599
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue