mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
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.
This commit is contained in:
parent
fadcbfcc68
commit
23a5f1f80d
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user