~ruther/nixos-config

e66c70855385d450531daa61588877d2561490a0 — Frantisek Bohacek 8 months ago b0f15be
feat: do not use routes for wireguard unnecessarily
1 files changed, 2 insertions(+), 1 deletions(-)

M nixos/modules/profiles/vpn.nix
M nixos/modules/profiles/vpn.nix => nixos/modules/profiles/vpn.nix +2 -1
@@ 42,7 42,8 @@

    networking.wireguard.interfaces = {
      wg0 = {
        ips = [ "${config.profiles.vpn.lanIp}/32" ];
        ips = [ "${config.profiles.vpn.lanIp}/24" ];
        allowedIPsAsRoutes = false;
        listenPort = 51820;

        generatePrivateKeyFile = true;

Do not follow this link