summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/configuration/user.nix2
-rw-r--r--system/settings/services/airplay-sink.nix9
2 files changed, 10 insertions, 1 deletions
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";
+  };
+}