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