Open frantisekhanzlikbl opened 3 months ago
It's technically documented under the environmentFile
option, however I do agree that it should be documented under files
as well. Making it toggleable should be pretty straight forward too, but would likely need some changes to the mkFiles script. Feel free to open PRs if you have the time :)
hi, sorry for not replying sooner. I kept thinking I'll find time for this somewhen, but I'm starting to see I won't be able to anytime soon. on top of that, I'm somewhat considering moving my infra over from systemd to nomad. while NixOS modules are superior in many ways, I'm starting to feel the need for a more flexible orchestrator, and would also prefer to spend less time worrying about every other NixOS service being completely unsandboxed. :)
Currently, neither the readme nor the option docs mention that
services.minecraft-servers.servers.<name>.files
performs environment substitution.I just got bitten by this when working with binaries that were getting mysteriously corrupted, and the module mutating them was not something that I expected.
The ideal case scenario is IMHO that this is disabled by default and opt-in on each file, or at least opt-able out of, but it should really be documented. I can make a PR for either if it helps. :slightly_smiling_face: