summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-10-07 23:21:45 +0200
committerAlan Pearce2022-10-08 01:36:11 +0200
commitad252750a5f086a3fecceacc5a5eaff3d080ab9d (patch)
tree5c1f9fc2dc5c18249573c3ccb832c8803b85b470
parentba1fcdddc1eee9b740dfb6c5f931cb489dae66ee (diff)
downloadnixfiles-ad252750a5f086a3fecceacc5a5eaff3d080ab9d.tar.lz
nixfiles-ad252750a5f086a3fecceacc5a5eaff3d080ab9d.tar.zst
nixfiles-ad252750a5f086a3fecceacc5a5eaff3d080ab9d.zip
airplay-sink: initialise module with shairport-sync
-rw-r--r--system/prefect.nix1
-rw-r--r--system/settings/configuration/user.nix2
-rw-r--r--system/settings/services/airplay-sink.nix9
3 files changed, 11 insertions, 1 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index b007bf12..b4eb6f34 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -23,6 +23,7 @@
     ./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
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";
+  };
+}