Switch to wg-quick for clients, seems more reliable

This commit is contained in:
Jimbo 2024-12-22 00:22:52 -05:00
parent 160dd14d55
commit 06e1964f7d
2 changed files with 3 additions and 8 deletions

View file

@ -10,7 +10,7 @@
];
networking.hostName = "envy";
networking.wireguard.interfaces.wgc.ips = [ "10.100.0.25/24" ];
networking.wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ];
system = {
lanzaboote.enable = true;

View file

@ -7,13 +7,8 @@
config = lib.mkIf config.system.wireguard.client.enable {
networking = {
firewall = {
allowedUDPPorts = [ 51820 ];
trustedInterfaces = [ "wgc" ];
};
wireguard.interfaces.wgc = {
listenPort = 51820;
firewall.trustedInterfaces = [ "wgc" ];
wg-quick.interfaces.wgc = {
privateKey = config.secrets.wgClientPriv;
peers = [
{ # Cyberspark Server