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/1systems/icarus/config.nix | 2 ++ lass/1systems/shodan/config.nix | 2 ++ lass/1systems/styx/config.nix | 3 +++ lass/2configs/snapclient.nix | 12 ++++++++++++ lass/2configs/snapserver.nix | 13 +++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 lass/2configs/snapclient.nix create mode 100644 lass/2configs/snapserver.nix diff --git a/lass/1systems/icarus/config.nix b/lass/1systems/icarus/config.nix index 609da601..2d2f23f9 100644 --- a/lass/1systems/icarus/config.nix +++ b/lass/1systems/icarus/config.nix @@ -10,6 +10,7 @@ with import ; + @@ -21,6 +22,7 @@ with import ; # + ]; krebs.build.host = config.krebs.hosts.icarus; diff --git a/lass/1systems/shodan/config.nix b/lass/1systems/shodan/config.nix index 7695e637..5d6a440e 100644 --- a/lass/1systems/shodan/config.nix +++ b/lass/1systems/shodan/config.nix @@ -8,6 +8,7 @@ with import ; + @@ -21,6 +22,7 @@ with import ; + ]; krebs.build.host = config.krebs.hosts.shodan; diff --git a/lass/1systems/styx/config.nix b/lass/1systems/styx/config.nix index 016d1480..e49d24f9 100644 --- a/lass/1systems/styx/config.nix +++ b/lass/1systems/styx/config.nix @@ -8,6 +8,7 @@ with import ; + @@ -23,6 +24,8 @@ with import ; # + + ]; krebs.build.host = config.krebs.hosts.styx; diff --git a/lass/2configs/snapclient.nix b/lass/2configs/snapclient.nix new file mode 100644 index 00000000..8015680e --- /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 00000000..3c6dbf75 --- /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