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

refactor file & symlink #116

Merged
merged 2 commits into from
Dec 29, 2024
Merged

Conversation

Misterio77
Copy link
Contributor

@Misterio77 Misterio77 commented Dec 26, 2024

Hi there! I was still bothered by the fact that symlinks/files aren't cleaned up when removed from the config (and stopWhenChanged prevents us from using stuff such as reload), so I decided to try a different approach.

The new system works by adding a file (.nix-minecraft-managed) to track managed files and symlinks. This makes it possible to correctly cleanup managed files (when stopping, restarting, reloading).

I've also added support for directories (#73), and ensured only non-binary files are substituted with env vars (#70)

Marked as draft as I'm still testing it.

Fixes #73
Fixes #70

@Misterio77
Copy link
Contributor Author

It seems that extended attributes don't work with symlinks :(

I switched my approach to keeping the managed files listed in a text file

@Misterio77 Misterio77 marked this pull request as ready for review December 27, 2024 04:15
@Misterio77 Misterio77 force-pushed the push-wowntlzvrlwy branch 2 times, most recently from c08b431 to 829076e Compare December 28, 2024 00:44
The new system works by adding a file (.nix-minecraft-managed) to track managed files and symlinks. This makes it possible to correctly cleanup managed files (when stopping, restarting, reloading).

I've also added support for directories (Infinidoge#73), and ensured only non-binary files are substituted with env vars (Infinidoge#70)
@Infinidoge Infinidoge merged commit 3003c8c into Infinidoge:master Dec 29, 2024
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

Successfully merging this pull request may close these issues.

Allow the files option to accept directories Document that the module's files option does env substitution
2 participants