Update more Wireguard

This commit is contained in:
Bun 2025-04-16 21:17:32 -04:00
parent 3df764b525
commit 981c065928
3 changed files with 44 additions and 45 deletions

View file

@ -1,19 +1,14 @@
{ config, lib, ... }:
{
config = lib.mkIf config.services.wireguard.client.enable {
networking = {
firewall.trustedInterfaces = [ "wgc" ];
wg-quick.interfaces.wgc = {
privateKey = config.secrets.wg.clientKey;
peers = [
{ # Kitty server
publicKey = "qnOT/lXOJMaQgDUdXpyfGZB2IEyUouRje2m/bCe9ux8=";
allowedIPs = [ "10.100.0.0/24" ];
endpoint = "sv.nixfox.ca:51820";
persistentKeepalive = 25;
}
];
};
};
networking.wg-quick.interfaces.wgc = lib.mkIf config.services.wireguard.client.enable {
privateKey = config.secrets.wg.clientKey;
peers = [
{ # Home server
publicKey = "qnOT/lXOJMaQgDUdXpyfGZB2IEyUouRje2m/bCe9ux8=";
allowedIPs = [ "11.0.0.0/8" ];
endpoint = "sv.nixfox.ca:51820";
persistentKeepalive = 25;
}
];
};
}