Move PipeWire configuration into own file
Also add link to documentation.
This commit is contained in:
parent
28cd59c957
commit
ae11e1f3da
3 changed files with 18 additions and 9 deletions
|
@ -4,6 +4,7 @@
|
|||
./configuration.nix
|
||||
./librespot.nix
|
||||
./networking.nix
|
||||
./pipewire.nix
|
||||
./shairport-sync.nix
|
||||
];
|
||||
}
|
||||
|
|
17
config/hosts/audio/pipewire.nix
Normal file
17
config/hosts/audio/pipewire.nix
Normal 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" ];
|
||||
}
|
|
@ -11,16 +11,7 @@
|
|||
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.chaos.extraGroups = [ "pipewire" ];
|
||||
|
||||
environment.etc.shairport-sync-config = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue