diff options
author | Rodrigo Gryzinski <contact@rogryza.me> | 2023-09-09 16:41:10 +0100 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-11-07 22:02:51 -0300 |
commit | 23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689 (patch) | |
tree | be7b72b718a502439e62305b22c5b6490210003a | |
parent | fadcbfcc6867e3f94a3abb2120c700f037372d6b (diff) |
nixos/wireguard: add wireguard to default kernel modules
Previously the module was only dynamically loaded on service startup,
this is needed in case security.lockKernelModules is enabled.
-rw-r--r-- | nixos/modules/services/networking/wireguard.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix index d4099be12a27..d36be87daf60 100644 --- a/nixos/modules/services/networking/wireguard.nix +++ b/nixos/modules/services/networking/wireguard.nix @@ -586,6 +586,7 @@ in }) all_peers; boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard; + boot.kernelModules = [ "wireguard" ]; environment.systemPackages = [ pkgs.wireguard-tools ]; systemd.services = |