# VPN clients: AmneziaVPN and the NetworkManager tray applet. The OpenVPN plugin # for NetworkManager comes with NetworkManager itself (core/networking.nix), so # imported connections work with or without this aspect. # # The declarative full-tunnel AmneziaWG VPN is not here: it is the proxy-suite # global profile `vpn` (network/proxy-suite.nix), built from the agenix secret # secrets/amneziawg-ai.age and never started at boot. Bring it up with # `proxy-ctl awg on vpn` and down with `proxy-ctl awg off`. While it runs, the # split mode (the global TProxy, zapret and the `ai` tunnel) is stopped: the # TProxy and zapret units conflict with it, and `ai` holds the same peer. # `awg off` brings the split mode back by itself, and so does a switch of the # configuration: it ends the full tunnel, so start it again afterwards. That # file explains both. The AmneziaVPN client below keeps its own configs and must # not use the same peer at the same time. { flake.modules.nixos.vpn = { programs.nm-applet.enable = true; programs.amnezia-vpn.enable = true; }; }