Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datapack Management not possible with Current Symlink Implementation #34

Closed
cappuccinocosmico opened this issue May 15, 2023 · 3 comments

Comments

@cappuccinocosmico
Copy link

cappuccinocosmico commented May 15, 2023

Problem: The folder for datapacks resides in /world/datapacks. Since the links created by with servers.<name>.symlinks results is defined to be the name of a variation and it is impossible to include special characters in the name of a derivation. My first immediate workaround trying create a symlink in the entire /worlds folder being a read only symbolic link to the nix store, thus making it impossible for the server to generate the world.

Fix: It would be nice to have a system for directly managing datapacks, or a modification to the current method of defining symlinks to get this to work. :)

@cappuccinocosmico cappuccinocosmico changed the title Datapack Management Datapack Management not possible with Current Symlink Implementation May 15, 2023
@cappuccinocosmico
Copy link
Author

This might be solvable using this recent pull request: #29 but based on my understanding of the code it only works with text files.

@Misterio77
Copy link
Contributor

Hey, can you show an example? Does this not work for you?

{
  services.minecraft-servers.servers.foo = {
    symlinks = {
      "world/datapacks/fóóbãr.zip" = a-derivation;
    };
  };
}

@cappuccinocosmico
Copy link
Author

My apologies, my previous config had mistakenly tried to apply

{
  services.minecraft-servers.servers.foo = {
    symlinks = {
      "world/datapacks/fóóbãr.zip".value = a-derivation;
    };
  };
}

With that change everything is working perfectly :) Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants