Skip to content
Snippets Groups Projects
Commit a8690024 authored by Florian Sesser's avatar Florian Sesser
Browse files

Only include extra Wireguard module on old Kernels

... that don't have it by default. (<5.6)
parent f6488d79
Branches
No related tags found
3 merge requests!140Merge staging into production,!122Merge develop into staging,!121Upgrade all hosts to release2105 NixOS
# Minimal configuration that vagrant depends on # Minimal configuration that vagrant depends on
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
# Vagrant uses an insecure shared private key by default, but we # Vagrant uses an insecure shared private key by default, but we
# don't use the authorizedKeys attribute under users because it should be # don't use the authorizedKeys attribute under users because it should be
...@@ -22,8 +22,10 @@ in ...@@ -22,8 +22,10 @@ in
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
# Wireguard kernel module # Wireguard kernel module for Kernels < 5.6
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ]; boot = lib.mkIf (lib.versionOlder pkgs.linuxPackages.kernel.version "5.6") {
extraModulePackages = [ config.boot.kernelPackages.wireguard ] ;
};
# Enable DBus # Enable DBus
services.dbus.enable = true; services.dbus.enable = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment