mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 17:20:13 +00:00
wireguard config but not enabled
This commit is contained in:
@ -1,14 +1,18 @@
|
||||
{ ... }: {
|
||||
networking.wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "10.0.0.1/32" "fc00:bbbb:bbbb:bb01::3:7fea/128" ];
|
||||
privateKeyFile = "/private/wireguard-pk";
|
||||
peers = [{
|
||||
publicKey = "ABCDEFABCDEF";
|
||||
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
||||
endpoint = "10.0.0.1:51820";
|
||||
persistentKeepalive = 25;
|
||||
}];
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "10.66.127.235/32" "fc00:bbbb:bbbb:bb01::3:7fea/128" ];
|
||||
generatePrivateKeyFile = true;
|
||||
privateKeyFile = "/private/wireguard/wg0";
|
||||
peers = [{
|
||||
publicKey = "cVDIYPzNChIeANp+0jE12kWM5Ga1MbmNErT1Pmaf12A=";
|
||||
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
||||
endpoint = "89.46.62.197:51820";
|
||||
persistentKeepalive = 25;
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user