IogaMaster / flux

Create and deploy game servers with nix
MIT License
48 stars 1 forks source link

Add support for networks. #5

Closed BANanaD3V closed 2 months ago

BANanaD3V commented 3 months ago

Description of changes

I added a serverLocation argument. I use it like this:

      lobby = {
        package = pkgs.mkMinecraftServer {
          name = "lobby";
          src = ./network; # Path to a mcman config
          serverLocation = "servers/lobby";
          hash = "sha256-6sKOI/N1WW7JKZ+NnvH2u6rzqC2N5GYDYJpR4OwMsVc="; #"";
        };
        proxy.enable = false;
      };

It feels kinda hacky, so don't merge it right now, I want to see if we can improve it. If you have any ideas, go ahead.

Relevant Issues

CC Maintainers

@IogaMaster

IogaMaster commented 3 months ago

If this is ready sqash the commits and I will merge

BANanaD3V commented 3 months ago

If this is ready sqash the commits and I will merge

i forgot to make a separate branch and i want to polish it tbh, it feels pretty strange / non-nix doing networks this way. but idk how to polish it