Add pipewire audio service.
This commit is contained in:
parent
d63d8e3a3e
commit
880ea1d8dd
3 changed files with 21 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -27,8 +27,9 @@
|
|||
"desktop"
|
||||
"desktop::sway"
|
||||
# "kodi"
|
||||
"openssh"
|
||||
"mullvad"
|
||||
"openssh"
|
||||
"pipewire"
|
||||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
|
|
13
services/pipewire.nix
Normal file
13
services/pipewire.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue