summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorBastian Köcher <git@kchr.de>2020-04-03 11:16:35 +0200
committerBastian Köcher <git@kchr.de>2020-04-03 12:39:35 +0200
commit644d643d68464c9f0ce5c17a3b31b4a9d927b7a2 (patch)
tree65266c911a2db4e64ff1a8fecd1a5c32581ec06d /nixos/modules/services
parent23b5b1fb84906179a220db6fb28c4b7d716f9a63 (diff)
nixos/wg-quick: Fix after wireguard got upstreamed
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/networking/wg-quick.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wg-quick.nix b/nixos/modules/services/networking/wg-quick.nix
index b770d47d269e..ff1bdeed9f48 100644
--- a/nixos/modules/services/networking/wg-quick.nix
+++ b/nixos/modules/services/networking/wg-quick.nix
@@ -302,7 +302,7 @@ in {
###### implementation
config = mkIf (cfg.interfaces != {}) {
- boot.extraModulePackages = [ kernel.wireguard ];
+ boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard;
environment.systemPackages = [ pkgs.wireguard-tools ];
# This is forced to false for now because the default "--validmark" rpfilter we apply on reverse path filtering
# breaks the wg-quick routing because wireguard packets leave with a fwmark from wireguard.