all repos — nixfiles @ ad252750a5f086a3fecceacc5a5eaff3d080ab9d

System and user configuration, managed by nix and home-manager

airplay-sink: initialise module with shairport-sync
Alan Pearce alan@alanpearce.eu
Fri, 07 Oct 2022 23:21:45 +0200
commit

ad252750a5f086a3fecceacc5a5eaff3d080ab9d

parent

ba1fcdddc1eee9b740dfb6c5f931cb489dae66ee

M system/prefect.nixsystem/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.nixsystem/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";
+  };
+}