mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
feat: own file for server pipewire config
This commit is contained in:
parent
446af8af15
commit
a6b8ecde4a
3 changed files with 47 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
20
profiles/server/nixos/pipewire.nix
Normal file
20
profiles/server/nixos/pipewire.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue