From 8301bb18d00df6a91e257b582bfbe24e5edff103 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 18 Sep 2022 12:17:18 +0200 Subject: l: use snapcast in gg23 --- lass/2configs/snapclient.nix | 12 ++++++++++++ lass/2configs/snapserver.nix | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 lass/2configs/snapclient.nix create mode 100644 lass/2configs/snapserver.nix (limited to 'lass/2configs') diff --git a/lass/2configs/snapclient.nix b/lass/2configs/snapclient.nix new file mode 100644 index 000000000..8015680e9 --- /dev/null +++ b/lass/2configs/snapclient.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +{ + systemd.services.snapclient = { + wantedBy = [ "multi-user.target" ]; + path = [ pkgs.snapcast ]; + script = "snapclient -h 10.42.0.1"; + serviceConfig = { + DynamicUser = true; + Group = "pipewire"; + }; + }; +} diff --git a/lass/2configs/snapserver.nix b/lass/2configs/snapserver.nix new file mode 100644 index 000000000..3c6dbf750 --- /dev/null +++ b/lass/2configs/snapserver.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: +{ + services.snapserver = { + enable = true; + openFirewall = true; + streams = { + pipewire = { + type = "pipe"; + location = "/run/snapserver/snapfifo"; + }; + }; + }; +} -- cgit v1.2.3