wireguard: Make marabethia the leader
All checks were successful
Cachix / build (elendel) (push) Successful in 1m9s
Cachix / build (kholinar) (push) Successful in 2m4s
Cachix / build (lasting-integrity) (push) Successful in 1m4s
Cachix / build (marabethia) (push) Successful in 1m19s
Cachix / build (urithiru) (push) Successful in 1m22s

This commit is contained in:
Charlotte Van Petegem 2024-11-11 19:27:55 +01:00
parent aa0476874e
commit 6c612b12f5
No known key found for this signature in database
GPG key ID: 019E764B7184435A
6 changed files with 9 additions and 9 deletions

View file

@ -66,9 +66,9 @@ in
(builtins.filter (name: name != config.networking.hostName) (builtins.attrNames data)))
else
([{
PublicKey = data.lasting-integrity.pubkey;
PublicKey = data.marabethia.pubkey;
AllowedIPs = subnet;
Endpoint = "lasting-integrity.vanpetegem.me:51820";
Endpoint = "marabethia.vanpetegem.me:51820";
PresharedKeyFile = pskFile;
PersistentKeepalive = 25;
}]);
@ -78,7 +78,7 @@ in
name = "wg0";
address = [ "${data.${config.networking.hostName}.ip}/32" ];
domains = [ "internal" ];
dns = [ data.lasting-integrity.ip ];
dns = [ data.marabethia.ip ];
linkConfig.MTUBytes = "1342";
routes = [
(
@ -86,7 +86,7 @@ in
Gateway = "${data.${config.networking.hostName}.ip}";
Destination = subnet;
} else {
Gateway = "${data.lasting-integrity.ip}";
Gateway = "${data.marabethia.ip}";
Destination = subnet;
GatewayOnLink = true;
}