fix(mottarone): re-enable openconnect nm plugin

This commit is contained in:
uku 2025-07-18 13:51:11 +02:00
parent e9b3c8e8ab
commit d9296d47fe
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 14 additions and 12 deletions

View file

@ -31,7 +31,6 @@
networkmanager = {
enable = true;
dns = "systemd-resolved";
plugins = [ pkgs.networkmanager-fortisslvpn ];
};
};

View file

@ -43,17 +43,20 @@
networking = {
firewall.allowedTCPPorts = [ 8000 ];
networkmanager.dispatcherScripts = [
{
type = "basic";
source = pkgs.writeShellScript "vpnUpHook" ''
if [ "$2" == "vpn-up" ]; then
resolvectl default-route tun0 true
logger "Set default-route to tun0"
fi
'';
}
];
networkmanager = {
plugins = [ pkgs.networkmanager-openconnect ];
dispatcherScripts = [
{
type = "basic";
source = pkgs.writeShellScript "vpnUpHook" ''
if [ "$2" == "vpn-up" ]; then
resolvectl default-route tun0 true
logger "Set default-route to tun0"
fi
'';
}
];
};
};
services = {