mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 21:04:38 -05:00
feat: wireguard test
This commit is contained in:
parent
f9e0ffb400
commit
d73b1c5abe
2 changed files with 15 additions and 1 deletions
|
@ -1,11 +1,15 @@
|
|||
{ config, flake, ... }:
|
||||
let
|
||||
inherit (flake.config.services.instances) wireGuard web;
|
||||
inherit (flake.config.services) instances;
|
||||
inherit (flake.config.machines.devices) ceres mars;
|
||||
service = wireGuard;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hosts = {
|
||||
${ceres.wireguard.ip0} = [ instances.searx.domains.url0 ];
|
||||
};
|
||||
wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "${mars.wireguard.ip0}/32" ];
|
||||
|
@ -16,7 +20,6 @@ in
|
|||
allowedIPs = [
|
||||
"${ceres.wireguard.ip0}/32"
|
||||
"${web.localhost.address4}/24"
|
||||
"${web.remotehost.address0}/32"
|
||||
];
|
||||
endpoint = "${web.remotehost.address0}:${builtins.toString service.ports.port1}";
|
||||
persistentKeepalive = 25;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue