-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
nixos/calibre-web: customize data directory #350617
Conversation
This commit adds the ability to customize the data directory where Calibre-Web stores its data. It uses systemd tmpfiles to create the directory with the correct permissions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable
Wasn't this a breaking change? |
If you changed the value of the option, yes. |
I did indeed set the option. 🙂 This change caused Do we not normally try to avoid needlessly breaking changes in NixOS modules? I'm not super familiar with NixOS community standards yet, though I have been using NixOS for a year or two now and regularly updating (I'm on This breakage wasn't an edge case — we just changed the meaning of the option unconditionally, so that anyone who set it would be broken (at runtime). Wouldn't it have been better to deprecate and create a new option? Or even to try to do something clever like try to recognize an absolute path (the new semantics) vs a relative path (the old semantics)? I'm not trying to criticize anybody here — I'd genuinely like to learn. |
You are right, this should have included an assertion that the provided value is an absolute path, and a changelog entry. |
This commit adds the ability to customize the data directory where Calibre-Web stores its data. It uses systemd tmpfiles to create the directory with the correct permissions.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.