From 986ff8c3d1e15ae1d4d4653fb86df588660f5a7d Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 20 Oct 2024 15:01:21 -0400 Subject: [PATCH] Revert some wireguard stuff and change something idk --- hosts/bomberman/system/default.nix | 5 +++-- modules/system/devices/networking/wireguard/pc/default.nix | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hosts/bomberman/system/default.nix b/hosts/bomberman/system/default.nix index e22e0b6..3385afe 100644 --- a/hosts/bomberman/system/default.nix +++ b/hosts/bomberman/system/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, ... }: { imports = [ ./hardware @@ -10,7 +10,7 @@ ../../../modules/system/devices/boot/systemd ../../../modules/system/devices/networking ../../../modules/system/devices/networking/firewall/pc - #../../../modules/system/devices/networking/wireguard/pc + ../../../modules/system/devices/networking/wireguard/pc ../../../modules/system/programs/git ../../../modules/system/programs/security ../../../modules/system/services/common @@ -21,4 +21,5 @@ ]; networking.hostName = "bomberman"; + networking.wireguard.interfaces."${config.ips.wgInt}".ips = [ "${config.ips.wgSpan}.19/32" ]; } diff --git a/modules/system/devices/networking/wireguard/pc/default.nix b/modules/system/devices/networking/wireguard/pc/default.nix index a792486..45d9308 100644 --- a/modules/system/devices/networking/wireguard/pc/default.nix +++ b/modules/system/devices/networking/wireguard/pc/default.nix @@ -1,9 +1,5 @@ { config, ... }: { - networking.firewall = { - allowedUDPPorts = [ 51820 ]; - }; - networking.wireguard.interfaces = { "${config.ips.wgInt}" = { # Define IP of client in per device config