nixos/stalwart: add module-specific stateVersion, clean up and switch logging from stdout to journal#489143
Conversation
|
Module maintainer ping: |
eaf5291 to
aa43df6
Compare
|
This looks good, leaving this open to give others a chance to review |
|
I'd like to include an example like "the current NixOS version" in this error message. Line 1212 in dfcc8a7 |
|
I dont have any qualms with this PR. I'm just noticing this would be breaking for existing users if they dont have the state version set. So if we merge this, we should do this earlier Rather than before we enter the freeze period for 26.05 |
journald's centralized logging has many advantages: - External centralized logging can simply source from journald - journald's auto-vacuum options (e.g. SystemMaxUse) can make sure logs don't take up too much space - Logs are in a single timeline, which is useful for analysis
716436c to
28a9274
Compare
This would require changing option value merging; not viable for this PR. |
…ch logging from stdout to journal (NixOS#489143)
From NixOS/nixpkgs#489143 Fixed via switching to declarations instead of files Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
From NixOS/nixpkgs#489143 Fixed via switching to declarations instead of files Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
|
I'm not sure why the stalwart module has its own Users shouldn't be changing their Frankly I think 75742d2 should be reverted or reworked. |
|
Thank you for the feedback. I agree that users shouldn't be updating their An easy change we could do to possibly improve UX would be to make this opt-in and have the option default to |
|
@amaanq yes there is no prior example of this, but what is the fundamental problem with having this ? What do you propose instead ? This is is just versioning the module in the end. The fact that there is no default is painful, but I dont see how this can be avoided. |
|
If you haven't seen it, I'm campaigning for a different per-module |
From NixOS/nixpkgs#489143 Fixed via switching to declarations instead of files Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
Sorry for a PR with multiple changes... Title basically says it.
This is also the first module-specific
stateVersionin Nixpkgs. It has been planned before (ping @infinisil @KFearsoff). Basically it makes migrating easier/possible and also makes possible using newer state versions with an oldsystem.stateVersion. ThestateVersiondoesn't have defaults (not just set to followconfig.system.stateVersionby the module) so the user explicitly sets it to the version they first installed Stalwart on or the current NixOS version for new installs.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.