Fix race condition (?)

This commit is contained in:
minish 2025-05-12 16:19:14 -04:00
parent edbf0de415
commit f990d5df05
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
publicKey = "OeIBzwOGYjQPU7co4MlNDqnARnJoICXMNam7TJWNBG0="; publicKey = "OeIBzwOGYjQPU7co4MlNDqnARnJoICXMNam7TJWNBG0=";
presharedKeyFile = config.sops.secrets."wireguard-psk".path; presharedKeyFile = config.sops.secrets."wireguard-psk".path;
allowedIPs = ["10.193.0.0/16"]; allowedIPs = ["10.193.0.0/16"];
endpoint = "min.rip:49090"; endpoint = "66.23.198.122:49090";
persistentKeepalive = 25; persistentKeepalive = 25;
} }
]; ];

View File

@ -4,7 +4,7 @@
... ...
}: let }: let
net = { net = {
# TODO: hardcoding (this module *may* be a good place to store values like this, though) # TODO: hardcoding
address = "66.23.198.122"; address = "66.23.198.122";
prefixLength = 24; prefixLength = 24;
subnet = "255.255.255.0"; subnet = "255.255.255.0";

View File

@ -48,7 +48,7 @@ with lib; let
}; };
}; };
baseClient = let baseClient = let
lhs = {"10.13.0.1" = ["min.rip:4242"];}; lhs = {"10.13.0.1" = ["66.23.198.122:4242"];};
lhsInternal = attrNames lhs; lhsInternal = attrNames lhs;
in { in {
lighthouses = lhsInternal; lighthouses = lhsInternal;