-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
amnezia-vpn: init at 4.8.2.3; nixos/programs/amnezia-vpn: init #367972
Conversation
7fb4d1f
to
486afad
Compare
6011112
to
f27aaab
Compare
It would be really cool if someone could help test this.
git clone -b amneziaVPN-init [email protected]:sund3RRR/nixpkgs.git --depth 1
programs.amnezia-vpn.enable = true;
sudo nixos-rebuild -I nixpkgs=/absolute/path/to/your/nixpkgs test |
59a4f84
to
a63f578
Compare
a63f578
to
db036a8
Compare
Added XRay fails with 602 error, OpenVPN freeze on |
3dd57b4
to
b2b17e6
Compare
6bb9f59
to
c67a69f
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5010 |
a6060d1
to
70aed45
Compare
Have you submitted the patch upstream? |
Now yes |
70aed45
to
337dc1f
Compare
# install AmneziaVPN and AmneziaVPN-service | ||
mkdir -p $out/bin | ||
cp client/AmneziaVPN $out/bin/ | ||
cp service/server/AmneziaVPN-service $out/bin/ | ||
# install update-resolv-conf.sh | ||
mkdir -p $out/local/bin | ||
cp ../deploy/data/linux/client/bin/update-resolv-conf.sh $out/local/bin/ | ||
# install .desktop item | ||
mkdir -p $out/share/applications | ||
cp ../AppDir/AmneziaVPN.desktop $out/share/applications/ | ||
# install icon | ||
mkdir -p $out/share/pixmaps/ | ||
cp ../deploy/data/linux/AmneziaVPN.png $out/share/pixmaps/ |
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.
# install AmneziaVPN and AmneziaVPN-service | |
mkdir -p $out/bin | |
cp client/AmneziaVPN $out/bin/ | |
cp service/server/AmneziaVPN-service $out/bin/ | |
# install update-resolv-conf.sh | |
mkdir -p $out/local/bin | |
cp ../deploy/data/linux/client/bin/update-resolv-conf.sh $out/local/bin/ | |
# install .desktop item | |
mkdir -p $out/share/applications | |
cp ../AppDir/AmneziaVPN.desktop $out/share/applications/ | |
# install icon | |
mkdir -p $out/share/pixmaps/ | |
cp ../deploy/data/linux/AmneziaVPN.png $out/share/pixmaps/ | |
mkdir -p $out/bin $out/local/bin $out/share/applications $out/share/pixmaps/ | |
cp client/AmneziaVPN service/server/AmneziaVPN-service $out/bin/ | |
cp ../deploy/data/linux/client/bin/update-resolv-conf.sh $out/local/bin/ | |
cp ../AppDir/AmneziaVPN.desktop $out/share/applications/ | |
cp ../deploy/data/linux/AmneziaVPN.png $out/share/pixmaps/ |
$out/locan is a pretty none standard location for us
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.
Is this ok? I don't want update-resolv-conf.sh
to be in bin/
because this script is not intended to be used outside the package
qtWrapperArgs = [ | ||
''--prefix PATH : ${ | ||
lib.makeBinPath [ | ||
busybox |
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.
Why busybox and note coreutils?
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.
because ip
an sysctl
are needed
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.
Might make sense to use procps
and iproute2
instead. Not sure, didn't test
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.
@sund3RRR you might have overlooked this feedback, so i ping you again; can you try with procps and iproute2? That would imo be more reasonable than a dep on an alternative coreutils impl.
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.
fine, it works! thank you
src = fetchFromGitHub { | ||
owner = "amnezia-vpn"; | ||
repo = "amnezia-client"; | ||
rev = "refs/tags/${finalAttrs.version}"; |
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.
rev = "refs/tags/${finalAttrs.version}"; | |
tag = finalAttrs.version; |
src = fetchFromGitHub { | ||
owner = "amnezia-vpn"; | ||
repo = "amnezia-xray-core"; | ||
rev = "v${finalAttrs.version}"; |
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.
rev = "v${finalAttrs.version}"; | |
tag = "v${finalAttrs.version}"; |
src = fetchFromGitHub { | ||
owner = "amnezia-vpn"; | ||
repo = "amnezia-tun2socks"; | ||
rev = "v${finalAttrs.version}"; |
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.
rev = "v${finalAttrs.version}"; | |
tag = "v${finalAttrs.version}"; |
337dc1f
to
d859408
Compare
0a815ab
to
8ff7bd9
Compare
|
8ff7bd9
to
28d2336
Compare
|
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.
looks reasonable to me now
Closes #338380
Amnezia is an open-source VPN client, with a key feature that enables you to deploy your own VPN server on your server.
Road map:
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.