loki: Enable jack support in pipewire

This commit is contained in:
Erwin Boskma 2023-10-23 08:12:48 +02:00
parent ab0b285c44
commit dc46c12ec5
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 10 additions and 3 deletions

View file

@ -61,7 +61,10 @@
cross-systems = [ "aarch64-linux" ]; cross-systems = [ "aarch64-linux" ];
}; };
tablet.enable = false; tablet.enable = false;
sound.enable = true; sound = {
enable = true;
jack = true;
};
systemd.enable = true; systemd.enable = true;
}; };

View file

@ -7,7 +7,10 @@ with lib; let
cfg = config.eboskma.sound; cfg = config.eboskma.sound;
in in
{ {
options.eboskma.sound.enable = mkEnableOption "activate sound settings"; options.eboskma.sound = {
enable = mkEnableOption "activate sound settings";
jack = mkEnableOption "enable JACK";
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
sound.enable = true; sound.enable = true;
@ -16,6 +19,7 @@ in
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
alsa.enable = true; alsa.enable = true;
jack.enable = cfg.jack;
wireplumber.enable = true; wireplumber.enable = true;
}; };
}; };
@ -39,7 +43,7 @@ in
security.rtkit.enable = true; security.rtkit.enable = true;
environment.systemPackages = with pkgs; [ pavucontrol ]; environment.systemPackages = with pkgs; [ pavucontrol pipewire ];
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "audio" ]; users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "audio" ];
}; };