mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
18 lines
511 B
Nix
18 lines
511 B
Nix
{ ... }:
|
|
{
|
|
networking.wg-quick.interfaces = {
|
|
wg0 = {
|
|
address = [ "10.7.0.4/24" ];
|
|
dns = [ "9.9.9.9" "149.112.112.112" ];
|
|
privateKeyFile = "/root/wireguard-keys/privatekey";
|
|
|
|
peers = [{
|
|
publicKey = "uE40chWhiPpnNHcgnLhMfOUfzotS6hK+dWwI1sIFcUw=";
|
|
presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key";
|
|
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
|
endpoint = "213.210.34.27:58192";
|
|
persistentKeepalive = 25;
|
|
}];
|
|
};
|
|
};
|
|
}
|