From e3810b668a23c73eaec7a0575af1dea32d7b2d01 Mon Sep 17 00:00:00 2001 From: Sergei Bulavintsev Date: Thu, 1 Feb 2024 12:21:33 +0300 Subject: [PATCH] feat(l2tp): add l2tp module --- nix/modules/nixos/hardware/networking/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/modules/nixos/hardware/networking/default.nix b/nix/modules/nixos/hardware/networking/default.nix index 207ee14..ac4fe14 100644 --- a/nix/modules/nixos/hardware/networking/default.nix +++ b/nix/modules/nixos/hardware/networking/default.nix @@ -2,6 +2,7 @@ options, config, lib, + pkgs, ... }: with lib; @@ -29,5 +30,12 @@ in { }; systemd.services.NetworkManager-wait-online.enable = false; services.wg-netmanager.enable = true; + environment.systemPackages = with pkgs; [networkmanager-l2tp gnome.networkmanager-l2tp]; + services.strongswan = { + enable = true; + secrets = [ + "ipsec.d/ipsec.nm-l2tp.secrets" + ]; + }; }; }