-
-
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
cgproxy, nixos/cgproxy: init at 0.20 #273492
base: master
Are you sure you want to change the base?
Conversation
enable_ipv6 = enable_ipv4 > enable_dns > enable_tcp = enable_udp | ||
command cgproxy and cgnoproxy always have highest priority | ||
|
||
Note: cgroup in configuration need to be exist, otherwise ignored |
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.
Could we assert 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.
Could we assert this?
Nope, this is from upstream README and seems related to the cgroup
at runtime, nix cannot handle this. I think this note may be unnecessary.
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@@ -0,0 +1,110 @@ | |||
{ config, lib, pkgs, ... }: | |||
|
|||
with lib; |
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.
to address #208242 for this module, uses of with
such as this should be avoided.
consider inherits
where you find yourself using lib.foo
excessively.
|
||
options = { | ||
services.cgproxy = { | ||
enable = mkEnableOption (lib.mdDoc "cgproxy"); |
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.
There may be some env issues in scripts. Mark as a draft until I have time to handle this. https://github.com/springzfx/cgproxy/blob/master/cgroup-tproxy.sh |
Link #287770 |
Description of changes
Add https://github.com/springzfx/cgproxy
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.