Nuke the fuck out of Wireguard slow as balls
This commit is contained in:
parent
491183aa7d
commit
7a56104845
36 changed files with 57 additions and 340 deletions
|
@ -12,6 +12,5 @@
|
|||
./sunshine
|
||||
./tlp
|
||||
./userborn
|
||||
./wireguard
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
options.services.wg.client.enable = lib.mkEnableOption "Enable Wireguard client";
|
||||
|
||||
config = lib.mkIf config.services.wg.client.enable {
|
||||
boot.kernelModules = [ "wireguard" ];
|
||||
|
||||
systemd.network = {
|
||||
netdevs = {
|
||||
"10-wg0" = {
|
||||
netdevConfig = {
|
||||
Kind = "wireguard";
|
||||
Name = "wg0";
|
||||
MTUBytes = "1300";
|
||||
};
|
||||
wireguardConfig = {
|
||||
PrivateKeyFile = pkgs.writeText "wgclientsecret" config.secrets.wg.clientKey;
|
||||
ListenPort = 9918;
|
||||
};
|
||||
};
|
||||
};
|
||||
networks."wg0" = {
|
||||
matchConfig.Name = "wg0";
|
||||
DHCP = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue