mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
job openvpn: modprobe tun
svn path=/nixos/branches/modular-nixos/; revision=15714
This commit is contained in:
parent
c0209d000a
commit
dc707dff08
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue