1
0
Fork 0

mediaserver: wireguard wip

This commit is contained in:
Daniel Kempkens 2023-04-13 21:43:32 +02:00
parent d55857de28
commit 518b591d88
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 3 additions and 5 deletions

View file

@ -1,8 +1,5 @@
{ pkgs, modulesPath, ... }: { pkgs, modulesPath, ... }:
let
latestKernelPackage = pkgs.linuxPackages_latest;
in
{ {
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
@ -17,9 +14,8 @@ in
kernelModules = [ "tls" ]; kernelModules = [ "tls" ];
}; };
kernelPackages = latestKernelPackage; kernelPackages = pkgs.linuxPackages_latest;
kernelModules = [ "kvm-intel" "tcp_bbr" ]; kernelModules = [ "kvm-intel" "tcp_bbr" ];
extraModulePackages = [ latestKernelPackage.wireguard ];
kernel.sysctl = { kernel.sysctl = {
"net.core.default_qdisc" = "fq"; "net.core.default_qdisc" = "fq";

View file

@ -69,6 +69,8 @@ in
useNetworkd = true; useNetworkd = true;
}; };
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
systemd.network = { systemd.network = {
enable = true; enable = true;