added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
29
nyx/hosts/enyo/wireguard.nix
Normal file
29
nyx/hosts/enyo/wireguard.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{config, ...}: {
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [51820];
|
||||
};
|
||||
|
||||
boot.kernelModules = ["wireguard"];
|
||||
|
||||
# Wireguard Client Peer Setup
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg0 = {
|
||||
# General Settings
|
||||
privateKeyFile = config.age.secrets.wg-client.path;
|
||||
allowedIPsAsRoutes = true;
|
||||
listenPort = 51820;
|
||||
ips = ["10.255.255.11/32" "2a01:4f9:c010:2cf9:f::11/128"];
|
||||
peers = [
|
||||
{
|
||||
allowedIPs = ["10.255.255.0/24" "2a01:4f9:c010:2cf9:f::/80"];
|
||||
endpoint = "128.140.91.216:51820";
|
||||
publicKey = "v3ol3QsgLPudVEtbETByQ0ABAOrJE2WcFfQ/PQAD8FM=";
|
||||
persistentKeepalive = 30;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue