From 8c0d6176781385b94ef6891e447221bb8e7bd257 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 22 Jan 2025 15:19:47 +0100 Subject: [PATCH] add pipewire config --- nixos-modules/audio/default.nix | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/nixos-modules/audio/default.nix b/nixos-modules/audio/default.nix index 17a1333..53314cd 100644 --- a/nixos-modules/audio/default.nix +++ b/nixos-modules/audio/default.nix @@ -90,6 +90,46 @@ in } ]; }; + "10-snapcast-discover" = { + "context.modules" = [ + { + name = "libpipewire-module-snapcast-discover"; + args = { + "stream.rules" = [ + { + matches = [ + { + "snapcast.ip" = "~.*"; + } + ]; + actions = { + create-stream = { + }; + }; + } + ]; + }; + } + ]; + }; + "10-pulse-discover" = { + "context.modules" = [ + { + name = "libpipewire-module-zeroconf-discover"; + args = { + }; + } + ]; + }; + "10-x11=bell" = { + "context.modules" = [ + { + name = "libpipewire-module-x11-bell"; + args = { + }; + } + ]; + }; }; }; };