airplay-sink: initialise module with shairport-sync
Alan Pearce alan@alanpearce.eu
Fri, 07 Oct 2022 23:21:45 +0200
3 files changed, 11 insertions(+), 1 deletions(-)
M system/prefect.nix → system/prefect.nix
@@ -23,6 +23,7 @@ ./settings/hardware/keyboard.nix ./settings/hardware/keyboardio-model01.nix ./settings/hardware/trackball.nix ./settings/hardware/trezor.nix + ./settings/services/airplay-sink.nix ./settings/services/samba.nix ./settings/services/syncthing.nix ./settings/services/virtualisation.nix
M system/settings/configuration/user.nix → 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";
A system/settings/services/airplay-sink.nix
@@ -0,0 +1,9 @@+{ config, pkgs, ... }: + +{ + services.pipewire.systemWide = true; + services.shairport-sync = { + enable = true; + group = "pipewire"; + }; +}