From ad252750a5f086a3fecceacc5a5eaff3d080ab9d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 7 Oct 2022 23:21:45 +0200 Subject: airplay-sink: initialise module with shairport-sync --- system/settings/configuration/user.nix | 2 +- system/settings/services/airplay-sink.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 system/settings/services/airplay-sink.nix (limited to 'system/settings') diff --git a/system/settings/configuration/user.nix b/system/settings/configuration/user.nix index 53120fed..33b678e9 100644 --- a/system/settings/configuration/user.nix +++ b/system/settings/configuration/user.nix @@ -3,7 +3,7 @@ { users.extraUsers.alan = { description = "Alan Pearce"; isNormalUser = true; - extraGroups = [ "audio" "wheel" "lp" "adbusers" "docker" "nitrokey" "dialout" "networkmanager" "video" ]; + extraGroups = [ "audio" "wheel" "lp" "adbusers" "docker" "nitrokey" "dialout" "pipewire" "networkmanager" "video" ]; shell = "/run/current-system/sw/bin/zsh"; initialPassword = "password"; home = "/home/alan"; diff --git a/system/settings/services/airplay-sink.nix b/system/settings/services/airplay-sink.nix new file mode 100644 index 00000000..5e8c147a --- /dev/null +++ b/system/settings/services/airplay-sink.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + services.pipewire.systemWide = true; + services.shairport-sync = { + enable = true; + group = "pipewire"; + }; +} -- cgit 1.4.1