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"
|
"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;
|
||||||
|
|
|
@ -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
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