diff options
author | lassulus <lassulus@lassul.us> | 2022-09-18 12:17:18 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-09-18 12:17:18 +0200 |
commit | 8301bb18d00df6a91e257b582bfbe24e5edff103 (patch) | |
tree | 34fd352485592bd69836f4f6c481d012f77ef6c3 /lass/2configs | |
parent | 44c4c2cbb4a4ecd907a86a78cb9a292a4823f72b (diff) |
l: use snapcast in gg23
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/snapclient.nix | 12 | ||||
-rw-r--r-- | lass/2configs/snapserver.nix | 13 |
2 files changed, 25 insertions, 0 deletions
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"; + }; + }; + }; +} |