-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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/icingaweb2: Replace most options with toINI #57716
Conversation
Oh, also asking for permission to backport to 19.03 as nobody is probably using the old options yet. |
Looking pretty awesome! I've become a fan of this approach after @infinisil explained the benefits to me as well, but I think database should still have nixos options so you can do passwordFile. I'd also argue for nixos options for the database because it's nice to abstract that away from the user. For this type of application database is not optional so it's nice to be able to provide the options for the user without requiring them to read any application specific documentation. Keeping users as close to What's your opinion about database options remaining nixos options? |
@aanderse There is not really a way for |
I see your point about passwordFile option. I suppose the other possibility would be to execute a script like this nixpkgs/nixos/modules/services/misc/gitea.nix Line 285 in 60acee5
|
@aanderse No - this doesn't work either. Trust me, if it was possible easily, I would have done it. Ini files neither have a way to include other files nor a way to execute arbitrary code. What you recommend is probably something like using |
Understood. Yeah it isn't a trivial amount of work to put that in a preStart. Looking good! |
@infinisil Is there a way this will get into 19.03? Otherwise, I'd remove the module on the 19.03 branch so people don't start relying on a module that will change in the next release. |
Backported in 8569d30 :) |
Thank you so much! |
Motivation for this change
@infinisil asked me in the original PR (#55957) to reduce the number of options.
I hope this does it.
cc @ryantm
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)