Debug wireguard
This commit is contained in:
parent
32b249c49a
commit
da1d8d1d2a
|
@ -14,6 +14,7 @@ with lib;
|
|||
m-0.hosts = mkOption {
|
||||
type = types.attrs;
|
||||
default = let p = config.m-0.prefix; in {
|
||||
hera-v4 = "213.136.94.190";
|
||||
hera = "${p}::1";
|
||||
hera-intern = "${p}::3:1";
|
||||
git = "${p}::3:2";
|
||||
|
|
|
@ -19,13 +19,13 @@ networking = {
|
|||
hostName = "apollo";
|
||||
wireguard.interfaces = {
|
||||
wireguard = {
|
||||
ips = [ "${hosts.apollo}/128" ];
|
||||
ips = [ "${hosts.apollo}/64" ];
|
||||
privateKeyFile = "/etc/nixos/hosts/apollo/secret/wireguard-private";
|
||||
peers = [
|
||||
{
|
||||
publicKey = wireguard.pub.hera;
|
||||
allowedIPs = [ "::/0" ];
|
||||
endpoint = "hera.m-0.eu:${wireguard.port}";
|
||||
allowedIPs = [ "${hosts.hera}/64" ];
|
||||
endpoint = "${hosts.hera-v4}:${builtins.toString wireguard.port}";
|
||||
presharedKeyFile = "/etc/nixos/common/secret/wireguard-psk";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue