mediaserver: wireguard wip
This commit is contained in:
parent
d55857de28
commit
518b591d88
2 changed files with 3 additions and 5 deletions
|
@ -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";
|
||||||
|
|
|
@ -69,6 +69,8 @@ in
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.extraModulePackages = [ config.boot.kernelPackages.wireguard ];
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue