about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorRodrigo Gryzinski <contact@rogryza.me>2023-09-09 16:41:10 +0100
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-11-07 22:02:51 -0300
commit23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689 (patch)
treebe7b72b718a502439e62305b22c5b6490210003a /nixos/modules
parentfadcbfcc6867e3f94a3abb2120c700f037372d6b (diff)
downloadnixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar.gz
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar.bz2
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar.lz
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar.xz
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.tar.zst
nixlib-23a5f1f80dbc198c9a81ed0bea13f6be3b4b3689.zip
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.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/wireguard.nix1
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 =