Update Wireguard client also

This commit is contained in:
Bun 2025-04-16 22:14:31 -04:00
parent 08827b5d5d
commit 48a2e3211d
12 changed files with 128 additions and 110 deletions

View file

@ -4,23 +4,13 @@
./boot
./disko
./filesystems
./firewall
./hardware
./network
./users
../../modules/system
];
networking = {
hostName = "tower";
vlans.internal = {
id=100;
interface="enp42s0";
};
interfaces.internal.ipv4.addresses = [{
address = "11.0.0.100";
prefixLength = 8;
}];
};
networking.hostName = "tower";
system = {
desktop.enable = true;
@ -28,5 +18,7 @@
stateVersion = "24.05";
};
services.wg.client.enable = true;
virtualisation.libvirtd.enable = true;
}

View file

@ -1,4 +0,0 @@
{ ... }:
{
networking.firewall.allowedUDPPorts = [ 27015 ];
}

View file

@ -0,0 +1,15 @@
{ ... }:
{
networking.firewall.allowedUDPPorts = [ 27015 ];
systemd.network = {
netdevs."10-wg0".wireguardPeers = [
{ # Local server
PublicKey = "qnOT/lXOJMaQgDUdXpyfGZB2IEyUouRje2m/bCe9ux8=";
AllowedIPs = [ "11.0.0.0/8" ];
Endpoint = "10.2.0.1:51820";
}
];
networks."wg0".address = [ "11.0.0.100/8" ];
};
}