fix(wireguard): remove obsolete wg config

This commit is contained in:
jacekpoz 2023-08-11 00:01:05 +02:00
parent 373e28b3f6
commit c4b5a62245
2 changed files with 4 additions and 42 deletions

View file

@ -25,7 +25,10 @@
];
};
networking.networkmanager.enable = true;
networking = {
networkmanager.enable = true;
firewall.checkReversePath = "loose";
};
time.timeZone = "Europe/Warsaw";

View file

@ -1,41 +0,0 @@
{
config,
pkgs,
...
}: {
networking = {
firewall = {
allowedUDPPorts = [ 51820 ];
checkReversePath = "loose";
};
wg-quick = {
interfaces = {
ch0 = {
address = [ "10.100.0.2/24" ];
listenPort = 51820;
privateKeyFile = "/home/jacek/.wg/chmura";
peers = [
{
publicKey = "cq4ZqnPM7wVGkoiquDbQLNuqEiPuHa/CLiGFow6buUI=";
allowedIPs = [ "0.0.0.0/0" ];
endpoint = "hcq082e0b05.sn.mynetname.net:51820";
}
];
};
mv0 = {
address = [ "10.64.197.114/32" "fc00:bbbb:bbbb:bb01::1:c571/128" ];
dns = [ "100.64.0.7" ];
privateKeyFile = "/home/jacek/.wg/mullvad";
peers = [
{
publicKey = "94qIvXgF0OXZ4IcquoS7AO57OV6JswUFgdONgGiq+jo=";
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
endpoint = "185.65.135.69:51820";
}
];
};
};
};
};
}