aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 027f3de03e1b8818d92c678490215c4bd49aa6ce (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 path/to/this/repo/wapkgs.nix {inherit pkgs;}).workadventure-xce;

    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";
    };
  };
}
```