aboutsummaryrefslogtreecommitdiff

Nix files for workadventure

this is based on the original packages by SuperSandro2000 and parts of the fediventure monorepo.

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

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