From ae11e1f3daad1e2f22b8814a835835ab590daea9 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 16 Oct 2023 22:52:35 +0200 Subject: [PATCH] Move PipeWire configuration into own file Also add link to documentation. --- config/hosts/audio/default.nix | 1 + config/hosts/audio/pipewire.nix | 17 +++++++++++++++++ config/hosts/audio/shairport-sync.nix | 9 --------- 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 config/hosts/audio/pipewire.nix diff --git a/config/hosts/audio/default.nix b/config/hosts/audio/default.nix index 4bb568f..ab9ec96 100644 --- a/config/hosts/audio/default.nix +++ b/config/hosts/audio/default.nix @@ -4,6 +4,7 @@ ./configuration.nix ./librespot.nix ./networking.nix + ./pipewire.nix ./shairport-sync.nix ]; } diff --git a/config/hosts/audio/pipewire.nix b/config/hosts/audio/pipewire.nix new file mode 100644 index 0000000..35284f3 --- /dev/null +++ b/config/hosts/audio/pipewire.nix @@ -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" ]; +} diff --git a/config/hosts/audio/shairport-sync.nix b/config/hosts/audio/shairport-sync.nix index 830dc89..9bbbddc 100644 --- a/config/hosts/audio/shairport-sync.nix +++ b/config/hosts/audio/shairport-sync.nix @@ -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;