git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #84173 from bkchr/bkchr-fix-wg-quick

Fix wg-quick after wireguard got upstreamed

commitb483a679ee9970851ca7197d82c18c25630e794c authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com> dateFri 3 Apr 2020, 13:26 (7 years ago) parent9f39148644d643
1 file changed+1−1
nixos/modules/services/networking/wg-quick.nix+1−1
nixos/modules/services/networking/wg-quick.nix+1−1
@@ -302,7 +302,7 @@ in {
302302 ###### implementation
303303
304304 config = mkIf (cfg.interfaces != {}) {
305− boot.extraModulePackages = [ kernel.wireguard ];
305+ boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard;
306306 environment.systemPackages = [ pkgs.wireguard-tools ];
307307 # This is forced to false for now because the default "--validmark" rpfilter we apply on reverse path filtering
308308 # breaks the wg-quick routing because wireguard packets leave with a fwmark from wireguard.