fix(mottarone): re-enable openconnect nm plugin
This commit is contained in:
parent
e9b3c8e8ab
commit
d9296d47fe
2 changed files with 14 additions and 12 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue