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
1bf51ec551
commit
b280e69c40
3 changed files with 9 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, flake, ... }:
|
||||
let
|
||||
inherit (flake.config.services.instances) wireGuard web;
|
||||
inherit (flake.config.machines.devices) mars;
|
||||
inherit (flake.config.machines.devices) mars ceres;
|
||||
service = wireGuard;
|
||||
in
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ in
|
|||
|
||||
wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "${web.wireguard.interface0}/24" ];
|
||||
ips = [ "${ceres.wireguard.ip0}/24" ];
|
||||
listenPort = service.ports.port0;
|
||||
privateKeyFile = config.sops.secrets."${service.name}-private".path;
|
||||
peers = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue