From 8a352b287f40da6f85516d798e9626cef245a537 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sat, 4 Nov 2023 14:43:46 +0100 Subject: [PATCH] added university vpn --- systems/common/packages.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/systems/common/packages.nix b/systems/common/packages.nix index 0d1ba98..f733dd0 100644 --- a/systems/common/packages.nix +++ b/systems/common/packages.nix @@ -44,5 +44,21 @@ tor-browser-bundle-bin hypnotix + + # VPN client for university + ( + pkgs.writeScriptBin "univpn" + '' + read -p "Username: " username + read -s -p "Password: " password + + # newline + echo "" + + read -p "OTP: " otp + + sudo ${pkgs.gof5}/bin/gof5 --server "vpn.univie.ac.at" --username "$username@$otp" --password "$password" + '' + ) ]; }