-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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/httpd: remove deprecated extraSubservices option #71067
Conversation
@Izorkin do you run an |
@aanderse checked on one site - it works. Also used patch #56304
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/68 |
nixos/modules/rename.nix
Outdated
@@ -233,6 +233,7 @@ with lib; | |||
(mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.") | |||
(mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.") | |||
(mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.") | |||
(mkRemovedOptionModule [ "services" "httpd" "extraSubservices" ] "Most existing subservices have been ported to the NixOS module system. Please update your configuration accordingly.") |
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.
See #61570, I think this would be better in the relevant module directly
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.
I didn't know about that PR. Thank you, I'll update accordingly.
The changes look good, they seem to really only remove that functionality. One thing I'm wondering: Could removing this option be a problem for people because they defined their own services with it? What should they use instead in that case? |
Thanks for the review @infinisil.
Yes.
They should create a NixOS module, or manage their web applications imperatively like they would on any other distribution. Fortunately migration to imperative management is very straight forward. The |
What's an example of a NixOS module to do this? |
Examples of NixOS modules serving over
I'm hoping to land some changes in |
Ah right, it's the services you converted to proper modules recently :D Sounds good then, feel free to merge yourself when you moved the |
Motivation for this change
Cleaning up the
httpd
module.I would appreciate the efforts of any
httpd
users who would run their configuration through this branch, compare the generatedhttpd.conf
to their own, and then share the results.Things done
I have compared several
httpd
configuration files generated by this new build compared to what19.09
builds and they are pretty much identical.sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @