Dasha : Fix vpn.

This commit is contained in:
Dmitry Voronin 2024-04-05 01:09:34 +03:00
parent 3124bf3a50
commit b05c512d29

View file

@ -6,4 +6,16 @@
# strongswan # strongswan
# strongswanNM # 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"
# ];
} }