chore: Add wireguard configuration

This commit is contained in:
Tera << 8 2025-05-06 08:47:03 -04:00
parent 889b5e421f
commit 8c4f84cf1a
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 20 additions and 1 deletions

View file

@ -60,6 +60,25 @@
virtualisation.oci-containers.backend = "docker";
# Reverse Proxy setup
networking.wireguard.interfaces = {
wg0 = {
ips = [ "10.10.0.3/24" ];
privateKeyFile = config.sops.secrets.reverse_proxy_client_privkey.path;
table = "69";
postSetup = "ip rule add from 10.10.0.2 table 69";
preShutdown = "ip rule del from 10.10.0.2 table 69";
peers = [{
publicKey = "QXDlW73/+hKJu6CPiCmpSWOXqKvJPC+b7E7iuvRpL2A=";
allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "terah.dev:55107";
persistentKeepalive = 25;
}];
};
};
# Volumes
fileSystems."/mnt/NASBox" = {
device = "192.168.0.3:/mnt/Diskette/KubeData";