2023-05-05 01:54:16 +03:00
|
|
|
{config, ...}: {
|
|
|
|
networking.wireguard.enable = true;
|
|
|
|
networking.wireguard.interfaces."wg0" = {
|
2023-05-05 03:30:46 +03:00
|
|
|
privateKeyFile = config.age.secrets.wgTkarontoKey.path;
|
2023-05-05 01:54:16 +03:00
|
|
|
peers = [{
|
2023-05-05 03:50:25 +03:00
|
|
|
publicKey = builtins.readFile ./wgWolumondeKey.pub;
|
2023-05-05 01:54:16 +03:00
|
|
|
allowedIPs = ["10.99.0.1/32"];
|
2023-05-05 03:50:25 +03:00
|
|
|
endpoint = "${builtins.readFile ./wgWolumondeIp}:51820";
|
2023-05-05 01:54:16 +03:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
}
|