feat: own file for server pipewire config

This commit is contained in:
Swarsel 2024-12-15 17:17:09 +01:00
parent 446af8af15
commit a6b8ecde4a
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 47 additions and 2 deletions

View file

@ -10,7 +10,6 @@ in
"${profilesPath}/common/nixos/gc.nix"
"${profilesPath}/common/nixos/store.nix"
"${profilesPath}/common/nixos/time.nix"
"${profilesPath}/common/nixos/pipewire.nix"
"${profilesPath}/common/nixos/users.nix"
"${profilesPath}/common/nixos/nix-ld.nix"
./settings.nix
@ -25,6 +24,7 @@ in
./spotifyd.nix
./mpd.nix
./matrix.nix
./pipewire.nix
./nextcloud.nix
./immich.nix
./paperless.nix

View file

@ -0,0 +1,20 @@
{ lib, config, ... }:
{
config = lib.mkIf (config.swarselsystems.server.mpd || config.swarselsystems.server.navidrome) {
security.rtkit.enable = true; # this is required for pipewire real-time access
services.pipewire = {
enable = true;
pulse.enable = true;
jack.enable = true;
audio.enable = true;
wireplumber.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
};
}