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
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:
parent
aa0476874e
commit
6c612b12f5
6 changed files with 9 additions and 9 deletions
|
@ -27,7 +27,7 @@
|
|||
path = "rpool/safe/data";
|
||||
remotePath = "zdata/recv/kholinar/safe/data";
|
||||
fast = true;
|
||||
location = "lasting-integrity";
|
||||
location = "elendel";
|
||||
}
|
||||
];
|
||||
rootDataset = "rpool/local/root";
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
};
|
||||
internalIPV4 = "192.168.0.2";
|
||||
};
|
||||
wireguard.server = true;
|
||||
};
|
||||
nix.enableDirenv = false;
|
||||
zfs = {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
internalInterface = "eno2";
|
||||
internalIPV4 = "192.168.0.3";
|
||||
};
|
||||
wireguard.server = true;
|
||||
};
|
||||
nix.enableDirenv = true;
|
||||
zfs = {
|
||||
|
|
|
@ -14,10 +14,10 @@ in
|
|||
# peers = [
|
||||
# {
|
||||
# allowedIPs = [ subnet ];
|
||||
# endpoint = "lasting-integrity.vanpetegem.me:51820";
|
||||
# endpoint = "marabethia.vanpetegem.me:51820";
|
||||
# presharedKeyFile = pskFile;
|
||||
# persistentKeepalive = 25;
|
||||
# publicKey = data.lasting-integrity.pubkey;
|
||||
# publicKey = data.marabethia.pubkey;
|
||||
# }
|
||||
# ];
|
||||
# privateKeyFile = data.${config.networking.hostName}.privkeyFile;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
path = "rpool/safe/data";
|
||||
remotePath = "zdata/recv/<hostname>/safe/data";
|
||||
fast = false;
|
||||
location = "lasting-integrity.vanpetegem.me";
|
||||
location = "marabethia.vanpetegem.me";
|
||||
}];
|
||||
};
|
||||
rootDataset = lib.mkOption {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue