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/postgresql: replace extraConfig option with settings option #95880
Conversation
Thank you! The RFC this PR follows: NixOS/rfcs#42 |
In this scenario the motivation is to replace |
@aanderse I was just summarizing how I understood that RFC, not what this PR does. My apologies for the confusion. |
93cfa93
to
0ed7f97
Compare
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.
As usual: Thanks for revamping the pgsql/mysql modules :-) Commented on a few nitpicks.
0ed7f97
to
0b09445
Compare
Feedback addressed. |
0b09445
to
2a44265
Compare
@GrahamcOfBorg test postgresql postgresql-wal-receiver |
Merge conflict resolved. Anyone keen on merging? |
It would be kinder to users to have a smooth upgrade path. |
While I hate making changes that instantly force users to adapt without prior notice, in the case of When asked about keeping both a
Further to this I would argue that migrating from Have I sufficiently addressed your concerns? I'm happy to continue the discussion and consider this further if not. |
I suspect that users with existing nixos configurations may resent this as a gratuitous change providing no benefit to them, especially if they need to modify multiple services, or if option merging semantics change. Just my 2c. Related to this PR itself, I have
Should the postgesql settings option support nested attrsets? E.g.
|
I would highly encourage you to express your opinions on this in the NixOS/rfcs#42 thread. The more feedback an RFC gets (constructive criticism included) the better the end result.
I'm not much of a
As a |
I just posted another comment about backwards compatibility in the RFC (saying it's up to the module writer to decide how to handle backwards compatibility). I guess the original comment by me that @aanderse linked is still relevant, but I think I mostly wrote that in relation to new NixOS modules. So if you create a new module, it should definitely not have an While I'd love for all existing modules to eventually adapt the |
@rvl NixOS is a pretty bleeding edge distro. Unfortunately inconvenient changes happen. I really like the welcoming and collaborative nature of the NixOS community so when I ask: "is this migration really that big of a hassle?" I'm just trying to better understand your perspective. Here is my perspective: I manage upwards of 40 NixOS machines, each of which has a number of changes required to migrate to So now that we have had this discussion what can you do if you're still not satisfied with the situation? I would be disappointed if you made a PR add |
I think I have already made my perspective clear, thanks. |
Motivation for this change
#94231
ping @jappeace
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)