Add pipewire audio service.

This commit is contained in:
Kevin Baensch 2024-11-20 15:22:46 +01:00
parent d63d8e3a3e
commit 880ea1d8dd
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 21 additions and 6 deletions

View file

@ -30,22 +30,23 @@ with lib; {
"base"
"cpp"
"dict"
"nodejs"
"latex"
"extra"
"haskell"
"latex"
"mail_utils"
"nodejs"
"python3"
"xpkgs"
];
services = [
"cups"
"desktop"
"desktop::sway"
"udev"
"cups"
"mullvad"
"mariaDB"
"mullvad"
"pipewire"
"podman"
"udev"
];
firewall = {
enable = true;

View file

@ -27,8 +27,9 @@
"desktop"
"desktop::sway"
# "kodi"
"openssh"
"mullvad"
"openssh"
"pipewire"
];
firewall = {
enable = true;

13
services/pipewire.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, config, ... }:
lib.mkIf (lib.elem "pipewire" config.machine.services) {
hardware.pulseaudio.enable = lib.mkForce false;
services.pipewire = {
enable = true;
wireplumber.enable = true;
audio.enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
}