Skip to content

Commit

Permalink
feat: Update Wireguard Config
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Jan 7, 2024
1 parent 66797f9 commit 1c01864
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,17 @@

wg-quick.interfaces = {
wg0 = {
address = ["10.200.200.6/32"];
dns = ["10.200.200.1"];
listenPort = 43461;
address = ["10.49.0.3/32"];
dns = ["172.29.147.190"];
# listenPort = 43461;
privateKeyFile = "/root/wg-key"; # root only readable file
# autostart = false; # This is added in later versions
autostart = false; # This is added in later versions
peers = [
{
publicKey = "LgHhvu81WJhk0plzAtTTjEmpsPLuhj7JcuMSeRJ/DRU=";
publicKey = "zEOirLqlRhJy1YUNHbLs8987/UuMDijE0/bBZQMVEmg=";
presharedKeyFile = "/root/wg-psk"; # root only readable file
allowedIPs = ["0.0.0.0/0"];
endpoint = "51.68.44.212:43461";
endpoint = "207.154.250.54:51820";
persistentKeepalive = 25;
}
];
Expand All @@ -233,7 +233,7 @@
};

# HACK: Temp workaround to prevent wg0 to automatically start
systemd.services.wg-quick-wg0.wantedBy = lib.mkForce [];
# systemd.services.wg-quick-wg0.wantedBy = lib.mkForce [];

# Packages
## Be bad but allow them
Expand Down

0 comments on commit 1c01864

Please sign in to comment.