Skip to content
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/znc: add proxychains support, maintainers, password tip #86226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sorki
Copy link
Member

@sorki sorki commented Apr 28, 2020

Motivation for this change

Privacy. Weakly depends on #86225.

Things done
  • proxychains support
  • Added meta.maintainers
  • note about generating new password
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@stale
Copy link

stale bot commented Dec 13, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 13, 2020
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 18, 2020
@sorki
Copy link
Member Author

sorki commented Dec 19, 2020

Still important. Dependent PR merged, this one rebased.

@sorki
Copy link
Member Author

sorki commented Dec 19, 2020

cc @infinisil

@@ -255,7 +270,12 @@ in
User = cfg.user;
Group = cfg.group;
Restart = "always";
ExecStart = "${pkgs.znc}/bin/znc --foreground --datadir ${cfg.dataDir} ${escapeShellArgs cfg.extraFlags}";
ExecStart = ''
${optionalString cfg.proxychains.enable "${pkgs.proxychains}/bin/proxychains4 "}${pkgs.znc}/bin/znc \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like how non-generic this is. Feels like this should be configurable independently somehow, though I don't really know how that would look

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have N different proxy services and M different services, using this pattern means that we need N*M NixOS options to support all combinations

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's certainly achievable with overlay or setting a wrapper via systemd.services... but this makes it easy to just enable the support.

I'm not concerned about N*M explosion since this is the only commonly used proxy(/wrapper) with ZNC.

Tangentially related this also needs setting up at least

programs.proxychains.enable = true;
services.tor.client.enable = true;

If you prefer I can drop this from the PR and carry that downstream.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have N different proxy services and M different services, using this pattern means that we need N*M NixOS options to support all combinations

I support @infinisil's opinion. This PR is good overall and should be merged IMO.

@stale
Copy link

stale bot commented Jun 20, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md and removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Jun 20, 2021
@stale
Copy link

stale bot commented Jan 8, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants