ctucx.git: nixfiles

ctucx' nixfiles

commit db5b06a9c63223aeb81cb8d0c51fa1cc9950cbc9
parent 04be1bd2324d8aa3341bcd8d04edbbebfc8163f6
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 23 Jan 2022 23:58:06 +0100

programs: listen for tcp connections on hosts lollo and stasicontainer
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/configurations/programs/pipewire.nix b/configurations/programs/pipewire.nix
@@ -1,6 +1,9 @@
 { config, lib, pkgs, ... }:
 
-{
+let
+  serverHosts = [ "stasicontainer" "lollo" ];
+
+in {
   imports = [
     ./avahi.nix
   ];

@@ -45,11 +48,11 @@
               name = "libpipewire-module-protocol-pulse";
               args = {
                 "server.address" = (
-                  if config.networking.hostName != "stasicontainer" then [
+                  if builtins.elem config.networking.hostName serverHosts then [
                     "unix:native"
+                    "tcp:4713"
                   ] else [
                     "unix:native"
-                    "tcp:4713"
                   ]
                 );
                 "vm.overrides" = {