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
3proxy: init at 0.8.13 #67507
3proxy: init at 0.8.13 #67507
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.
LGTM!
@GrahamcOfBorg build _3proxy |
@GrahamcOfBorg build _3proxy |
I have a module for 3proxy. Should i push it here or wait for this pull request to by merged? |
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.
Builds with nix-review
@misuzu feel free to include it here, as well as the test for the module. @GrahamcOfBorg build _3proxy |
@GrahamcOfBorg test 3proxy |
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.
Impressive first package. You've done a great job here!
Ignore all other 3proxy options and load configuration from this file. | ||
''; | ||
}; | ||
users = mkOption { |
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 don't like options like this because it promotes bad user behavior and serves as more examples to other nixos developers on why it is ok to store secrets in the nix store (hint: it is not).
You have a usersFile
option which covers the required functionality in a relatively simple way. What I'm suggesting is that you remove the users
option in favor of usersFile
. People who are entirely insistent on storing secrets in the nix store (or just want to quickly test with dummy data) are still free to write out something like:
services._3proxy.usersFile = pkgs.writeText ''
user aanderse:CL:test
'';
I want to make it very clear this is just my opinion and not required in order to have this PR merged.
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.
Removed.
type = types.nullOr types.lines; | ||
default = null; | ||
description = '' | ||
Extra configuration, appended to the 3proxy configuration file. |
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.
Please include link to upstream documentation.
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.
Done.
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.
Please wrap links like so <link xlink:href="https://github.com/z3APA3A/3proxy/wiki/3proxy.cfg"/>
for easy clicking.
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.
Done.
type = types.nullOr types.lines; | ||
default = null; | ||
description = '' | ||
Extra configuration for service. |
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 someone who has never used this program I would appreciate an explanation of what you put here, possibly including a link to the relevant section of upstream documentation.
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.
Done.
3f2a68b
to
08eb63b
Compare
Rebased to fix merge conflict. |
Sorry, I'm unable to continue with a review at this time. Ping @mmahut in case he is available. |
Note that it looks like there is a Perl → Python NixOS test migration ongoing right now, so in future you probably should use the new Python test driver. |
The nixos manual currently fails to build because of that:
|
Motivation for this change
New package
Things done
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