Infinidoge / nix-minecraft

An attempt to better support Minecraft-related content for the Nix ecosystem
MIT License
172 stars 18 forks source link

module: add enableReload #40

Closed Misterio77 closed 8 months ago

Misterio77 commented 1 year ago

This PR makes it possible to have Nix reload the service instead of restarting it, when it's changed.

This is very useful for servers you don't want to take down when switching; you can also add custom commands to run on reload (e.g. issuing a command through tmux to reload a specific plugin)

Misterio77 commented 1 year ago

You can check this commit passes the tests by cherry-picking the tests branch:

git fetch git@github.com:misterio77/nix-minecraft tests
git cherry-pick -n FETCH_HEAD

nix flake check

git reset --hard
Infinidoge commented 1 year ago

Pretty simple and straight forward. Will test locally before merging.

Infinidoge commented 8 months ago

Rebased and fixed a small typo