mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
0f3fa64430
quite some services need to be started/restarted when a connection is established/teared down. Also, some services are optional depending on the connected access point. For example: use a vpn on an untrusted network. these small trigger scripts don't change any behaviour by themselves, but allow you to hook in to them if you need. example use: jobs.gw6c.startOn = pkgs.lib.mkForce "started openvpn-dcsOffice"; jobs.gw6c.stopOn = pkgs.lib.mkForce "stopping openvpn-dcsOffice"; jobs."openvpn-dcsOffice".startOn = pkgs.lib.mkForce "wicd-postconnect"; jobs."openvpn-dcsOffice".stopOn = pkgs.lib.mkForce "stopping network-interfaces or wicd-predisconnect"; In the example, I use 3 layers. When a physical connection is available (wifi connect), I setup a vpn connection, and setup an ipv6 tunnel on top of that. When disconnecting, they are automatically shut down in the right order as well. svn path=/nixpkgs/trunk/; revision=31662 |
||
---|---|---|
.. | ||
admin | ||
archivers | ||
backup | ||
bluetooth | ||
cd-dvd | ||
compression | ||
filesystems | ||
graphics | ||
misc | ||
networking | ||
package-management | ||
pydb | ||
security | ||
system | ||
text | ||
typesetting | ||
video | ||
virtualization | ||
X11 |