{ config, lib, ... }: { 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; } ]; }; }