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