🚀 add university vpn
This commit is contained in:
parent
2794c80c9d
commit
7013a0b223
4 changed files with 24 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
./keyring.nix
|
./keyring.nix
|
||||||
./openvpn.nix
|
./openvpn.nix
|
||||||
./picom.nix
|
./picom.nix
|
||||||
|
./openconnect.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
22
modules/services/openconnect.nix
Normal file
22
modules/services/openconnect.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.openconnect.interfaces = {
|
||||||
|
university = {
|
||||||
|
gateway = "vpn.uni-leipzig.de";
|
||||||
|
protocol = "anyconnect";
|
||||||
|
user = "mb18cele@uni-leipzig.de";
|
||||||
|
# NOTE file content as follows:
|
||||||
|
# <my_password>
|
||||||
|
# "1-Standard-Uni" or "2-Spezial-Alles"
|
||||||
|
# Explanation:
|
||||||
|
# 1-Standard-Uni = Uni Dienste über VPN (Standard)
|
||||||
|
# 2-Spezial-Alles = Gesamter Datenverkehr über VPN (Spezial)
|
||||||
|
passwordFile = "/run/agenix/uniVPN";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
age.secrets.uniVPN = {
|
||||||
|
file = ../../secrets/uni-vpn.age;
|
||||||
|
owner = "1000";
|
||||||
|
};
|
||||||
|
}
|
|
@ -18,4 +18,5 @@ in {
|
||||||
"home-vpn.age".publicKeys = users ++ hosts;
|
"home-vpn.age".publicKeys = users ++ hosts;
|
||||||
"home-vpn-password.age".publicKeys = users ++ hosts;
|
"home-vpn-password.age".publicKeys = users ++ hosts;
|
||||||
"github.age".publicKeys = users ++ hosts;
|
"github.age".publicKeys = users ++ hosts;
|
||||||
|
"uni-vpn.age".publicKeys = users ++ hosts;
|
||||||
}
|
}
|
||||||
|
|
BIN
secrets/uni-vpn.age
Normal file
BIN
secrets/uni-vpn.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue