about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>2020-02-22 10:20:13 +0100
committerGitHub <noreply@github.com>2020-02-22 10:20:13 +0100
commit02bbaaddc81bcc2c5483e2a407d776ea7ef29b36 (patch)
treefd344d28991f2250c8761c127adb5c00634ac6cc /nixos
parent4c1c294f7de1acc58730c1f02712f216aa660567 (diff)
parent50fb52d4e1fcf854c43f59ea052ed13916d2983c (diff)
downloadnixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar.gz
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar.bz2
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar.lz
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar.xz
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.tar.zst
nixlib-02bbaaddc81bcc2c5483e2a407d776ea7ef29b36.zip
Merge pull request #80758 from ikervagyok/wg
nixos/wireguard: fix wireguard service as well after it got upstreamed
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/wireguard.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix
index 7785861a730f..ff8e54a1ce20 100644
--- a/nixos/modules/services/networking/wireguard.nix
+++ b/nixos/modules/services/networking/wireguard.nix
@@ -435,7 +435,7 @@ in
           message = "networking.wireguard.interfaces.${interfaceName} peer «${peer.publicKey}» has both presharedKey and presharedKeyFile set, but only one can be used.";
         }) all_peers;
 
-    boot.extraModulePackages = [ kernel.wireguard ];
+    boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard;
     environment.systemPackages = [ pkgs.wireguard-tools ];
 
     systemd.services =