This adds the `mumble` clan-module. This allows for voice chatting in a true peer-to-peer network. Every machine that has the module enabled is a potential host and client - every participant has the same role. It doesn't matter who in the network is online - as long as one of the machines is up, one server is up and people can start their voice chat.
43 lines
768 B
Nix
43 lines
768 B
Nix
{ pkgs, self, ... }:
|
|
pkgs.nixosTest {
|
|
name = "mumble";
|
|
nodes.peer1 =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
self.nixosModules.mumble
|
|
self.inputs.clan-core.nixosModules.clanCore
|
|
{
|
|
config = {
|
|
clan.core.machineName = "peer1";
|
|
clan.core.clanDir = ./.;
|
|
|
|
documentation.enable = false;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
nodes.peer2 =
|
|
{ ... }:
|
|
{
|
|
imports = [
|
|
self.nixosModules.mumble
|
|
self.inputs.clan-core.nixosModules.clanCore
|
|
{
|
|
config = {
|
|
|
|
clan.core.machineName = "peer2";
|
|
clan.core.clanDir = ./.;
|
|
|
|
documentation.enable = false;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
'';
|
|
|
|
}
|