fix wireguard service as well after it got upstreamed.

This commit is contained in:
Lengyel Balazs 2020-02-22 00:26:26 +01:00
parent 7a56099d2d
commit 50fb52d4e1

View File

@ -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 =