job openvpn: modprobe tun
svn path=/nixos/branches/modular-nixos/; revision=15714
This commit is contained in:
parent
c0209d000a
commit
dc707dff08
@ -67,6 +67,9 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
modprobe = config.system.sbin.modprobe;
|
||||
|
||||
###### implementation
|
||||
|
||||
cfg = config.services.openvpn;
|
||||
@ -111,6 +114,7 @@ let
|
||||
respawn
|
||||
script
|
||||
exec &> /var/log/openvpn-${cfg.id}
|
||||
${modprobe} tun || true
|
||||
${openvpn}/sbin/openvpn --config ${configFile}
|
||||
end script
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user