1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fu-berlin: they changed their vpn

This commit is contained in:
2024-10-23 07:53:53 +02:00
parent 7d38f3a718
commit e7a77fbfb5

View File

@@ -127,8 +127,17 @@ in {
cifs-credentials-zodiac.file = ../secrets/cifs-credentials-zodiac.age; cifs-credentials-zodiac.file = ../secrets/cifs-credentials-zodiac.age;
}; };
environment.systemPackages = [
(pkgs.writers.writeDashBin "fu-vpn" ''
if ${pkgs.wirelesstools}/bin/iwgetid | ${pkgs.gnugrep}/bin/grep --invert-match eduroam
then
${pkgs.openconnect}/bin/openconnect vpn.fu-berlin.de --useragent=AnyConnect
fi
'')
];
systemd.services.fu-vpn = { systemd.services.fu-vpn = {
enable = true; enable = false;
wants = ["network-online.target"]; wants = ["network-online.target"];
serviceConfig.LoadCredential = "password:${config.age.secrets.email-password-meinhak99.path}"; serviceConfig.LoadCredential = "password:${config.age.secrets.email-password-meinhak99.path}";
script = '' script = ''