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" "base"
"cpp" "cpp"
"dict" "dict"
"nodejs"
"latex"
"extra" "extra"
"haskell" "haskell"
"latex"
"mail_utils" "mail_utils"
"nodejs"
"python3" "python3"
"xpkgs" "xpkgs"
]; ];
services = [ services = [
"cups"
"desktop" "desktop"
"desktop::sway" "desktop::sway"
"udev"
"cups"
"mullvad"
"mariaDB" "mariaDB"
"mullvad"
"pipewire"
"podman" "podman"
"udev"
]; ];
firewall = { firewall = {
enable = true; enable = true;

View file

@ -27,8 +27,9 @@
"desktop" "desktop"
"desktop::sway" "desktop::sway"
# "kodi" # "kodi"
"openssh"
"mullvad" "mullvad"
"openssh"
"pipewire"
]; ];
firewall = { firewall = {
enable = true; 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;
};
}