Move PipeWire configuration into own file

Also add link to documentation.
This commit is contained in:
June 2023-10-16 22:52:35 +02:00
parent 28cd59c957
commit ae11e1f3da
3 changed files with 18 additions and 9 deletions

View file

@ -4,6 +4,7 @@
./configuration.nix ./configuration.nix
./librespot.nix ./librespot.nix
./networking.nix ./networking.nix
./pipewire.nix
./shairport-sync.nix ./shairport-sync.nix
]; ];
} }

View file

@ -0,0 +1,17 @@
# Sources for this configuration:
# - https://nixos.wiki/wiki/PipeWire
{ config, pkgs, ... }:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
systemWide = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.chaos.extraGroups = [ "pipewire" ];
}

View file

@ -11,16 +11,7 @@
arguments = "-o pw"; arguments = "-o pw";
}; };
security.rtkit.enable = true;
services.pipewire = {
enable = true;
systemWide = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
users.users.shairport.extraGroups = [ "pipewire" ]; users.users.shairport.extraGroups = [ "pipewire" ];
users.users.chaos.extraGroups = [ "pipewire" ];
environment.etc.shairport-sync-config = { environment.etc.shairport-sync-config = {
enable = true; enable = true;