Replace tailscale with wireguard
This commit is contained in:
parent
81f59a8148
commit
d0084adcc9
8 changed files with 278 additions and 77 deletions
|
|
@ -4,7 +4,7 @@
|
|||
./disk-config.nix
|
||||
./containers.nix # Host-specific container definitions
|
||||
./proxy.nix # Host-specific Traefik dynamic configuration
|
||||
../../../modules/tailscale.nix
|
||||
../../../modules/wireguard.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/borg.nix
|
||||
|
|
@ -135,6 +135,24 @@
|
|||
'';
|
||||
};
|
||||
|
||||
# WireGuard VPN configuration (VPS as hub/server)
|
||||
services.wireguard-custom = {
|
||||
enable = true;
|
||||
mode = "server";
|
||||
serverConfig = {
|
||||
address = "10.2.2.1/24";
|
||||
peers = [
|
||||
{
|
||||
name = "hs";
|
||||
# Public key will be generated when HS is configured
|
||||
# Replace with actual public key from HS after initial setup
|
||||
publicKey = "REPLACE_WITH_HS_PUBLIC_KEY";
|
||||
allowedIPs = [ "10.2.2.20/32" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leave
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue