aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c39378038b8c4c08793e0992f7fd7b49958c90dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Nix files for workadventure

this is based on the [original packages by SuperSandro2000](https://github.com/SuperSandro2000/workadventure-nix)
and parts of [the fediventure monorepo](https://gitlab.com/fediventure/fediventure/).

The intended usage is to import this into your config and then use it as
a normal NixOS service, i.e. like so:

```nix
{config, pkgs, ...}: {
  imports = [ path-to-this-repo ];

  services.workadventure."localhost" = {

    # you can also use a different version of workadventure!
    packageset = (import workadventure-nix/wapkgs.nix {inherit pkgs; lib = pkgs.lib;}).workadventure-hasi;

    nginx = {
      default = true;
      domain = "localhost";
    };
        
    frontend.startRoomUrl = "/_/global/localhost/maps/main.json";      
    commonConfig = {
      webrtc.stun.url = "stun:coturn.somewhere:3478";
      webrtc.turn = {
        url = "turn:coturn.somewhere";
        user = "turn";
        password = "TURN_PASSWORD";
      };
      jitsi.url = "meet.somewhere.net";
    };
  };
}
```