feat[server]: support multiple wireguard tunnels

This commit is contained in:
Leon Schwarzäugl 2025-12-22 14:14:45 +01:00 committed by Leon Schwarzäugl
parent 1ffb154031
commit 91157e2cca
16 changed files with 546 additions and 357 deletions

View file

@ -31,6 +31,16 @@
rootDisk = "/dev/sda";
swapSize = "8G";
networkKernelModules = [ "igb" ];
server = {
wireguard.interfaces = {
wgHome = {
isServer = true;
peers = [
"winters"
];
};
};
};
};
} // lib.optionalAttrs (!minimal) {
@ -43,6 +53,7 @@
swarselmodules = {
server = {
nginx = lib.mkForce false; # we get this from the server profile
wireguard = true;
};
};