From b05c512d29b1ae0fb0553801e0f420850552f0d7 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 5 Apr 2024 01:09:34 +0300 Subject: [PATCH] Dasha : Fix vpn. --- host/dasha/Vpn.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/host/dasha/Vpn.nix b/host/dasha/Vpn.nix index 48d99e0..085e239 100644 --- a/host/dasha/Vpn.nix +++ b/host/dasha/Vpn.nix @@ -6,4 +6,16 @@ # strongswan # strongswanNM ]; + networking.networkmanager.enableStrongSwan = true; + services.xl2tpd.enable = true; + services.strongswan = { + enable = true; + secrets = [ + "ipsec.d/ipsec.nm-l2tp.secrets" + ]; + }; + # NOTE: Try this if VPN ever breaks. + # systemd.tmpfiles.rules = [ + # "L /etc/ipsec.secrets - - - - /etc/ipsec.d/ipsec.nm-l2tp.secrets" + # ]; }