I have a wireguard connection set up in networking.wg-quick.interfaces
. It starts on boot and if I stop it with systemctl stop wg-quick-protonVPNCA70.service
it restarts when I run nixos-rebuild switch
. How can I make it off by default? This is the config:
networking.wg-quick.interfaces.protonVPNCA70 = {
address = ["10.2.0.2/32"];
peers = [
{
allowedIPs = ["0.0.0.0/0"];
endpoint = "91.219.212.194:51820";
publicKey = "XXX";
}
];
privateKey = "XXX";
};