17 lines
360 B
Nix
17 lines
360 B
Nix
|
{ pkgs, config, ... }:
|
||
|
|
||
|
{
|
||
|
networking.networkmanager.dispatcherScripts = [{
|
||
|
source = pkgs.writeShellScript "vdns.sh" ''
|
||
|
[[ "$2" != "up" ]] && exit 0
|
||
|
case $1 in
|
||
|
wl*|en*)
|
||
|
sleep 0.5;
|
||
|
${pkgs.networkmanager}/bin/nmcli c up vDNS;;
|
||
|
esac
|
||
|
exit 0
|
||
|
'';
|
||
|
type = "basic";
|
||
|
}];
|
||
|
}
|