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/mysql: add settings and configFile option #81940
Conversation
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.
Nice! Perfect use case for the RFC.
Not working this configuration:
error:
if use package mariadb.server builded
After this update poorly view the current configuration /etc/my.cnf.
Before:
|
@Izorkin thank you for your feedback and testing! You are always so reliable 😄
I'm under the impression this is a shorthand syntax for what should be written as:
Can you please provide @Izorkin it is very true that RFC42 doesn't let you hand craft beautiful configuration files which is disappointing to you. I don't know how to address this. I think you should mention this in NixOS/rfcs#42 for a discussion point. Any comment @infinisil? |
Yeah I guess commenting in config files themselves isn't something supported by this approach, but I think that's rather minor compared to the benefits it gives. It's still possible to have comments in the Nix code at least. |
https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_quick
You can process the block while maintaining the layout of the lines from the configuration? |
@infinisil I just realized I missed something here... any thoughts on how to deal with this? https://dev.mysql.com/doc/refman/8.0/en/option-files.html#option-file-inclusions |
This appears to be a bug in
I don't think this is possible 😞 |
1fb9af4
to
0b020a9
Compare
Yes, this bug in
Only this option will not work with MySQL 5.7 and 8.0. |
Thanks for confirming the bug exists in master. If you can file an issue that would be appreciated. |
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.
Works for my configuration, and I'm always happy to throw out types.lines
literals. 👍
Thanks to @infinisil I believe this is ready for final testing and merging. |
I realized that Does anyone have any other requests before merging this? |
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.
With a fully declarative NixOS config these !include
statements can even be replaced with a separate NixOS module that gets imports
ed, because the new settings
option now handles composition :). So it's not entirely unjustified to not support it (though this doesn't work with includes from runtime paths). How it's done now looks good
@GrahamcOfBorg test mysql |
Motivation for this change
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)cc @thorstenweber83