From 75db7243e7fdfd23612c925b3a364cc5cc375605 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 30 Sep 2024 12:47:07 +0300 Subject: [PATCH] StrongSwan : Remove old module. --- module/StrongSwan.nix | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 module/StrongSwan.nix diff --git a/module/StrongSwan.nix b/module/StrongSwan.nix deleted file mode 100644 index 0c6e947..0000000 --- a/module/StrongSwan.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ pkgs, lib, config, ... }: with lib; let - cfg = config.module.strongswan; -in { - options = { - module.strongswan.enable = mkEnableOption "StrongSwan Vpn support."; - }; - - config = mkIf cfg.enable { - environment.systemPackages = with pkgs; [ - networkmanager-l2tp - gnome.networkmanager-l2tp - # networkmanager_strongswan - # 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" - # ]; - }; -}