This commit is contained in:
sinavir 2024-03-03 12:16:09 +01:00
parent 06f82ef82b
commit 2766c9dbbf
2 changed files with 28 additions and 0 deletions

View file

@ -9,5 +9,6 @@
}; };
age.secrets."wg-key" = { age.secrets."wg-key" = {
file = ./wg-key.age; file = ./wg-key.age;
owner = "systemd-network";
}; };
} }

View file

@ -18,6 +18,9 @@
Scope = "link"; Scope = "link";
}; };
}]; }];
networkConfig = {
IPForward = true;
};
}; };
}; };
netdevs = { netdevs = {
@ -32,6 +35,30 @@
}; };
wireguardPeers = [ wireguardPeers = [
{ #bakham (AGB)
wireguardPeerConfig = {
AllowedIPs = [
"10.10.10.5/32"
];
PublicKey = "JpUHFiavhlQfiHfOdUffQP3HLLeStttheACCaqlXAF8=";
};
}
{ #soyouzpanda
wireguardPeerConfig = {
AllowedIPs = [
"10.10.10.11/32"
];
PublicKey = "/xjWqkiyHY93wqo/Apj5SHP8UaXF4mKQRVwylKC2wy8=";
};
}
{ #sinavir
wireguardPeerConfig = {
AllowedIPs = [
"10.10.10.12/32"
];
PublicKey = "kmc3PexCMKm1Tg8WUDbHaOkcWLl8KUh52CtrDOODf0M=";
};
}
]; ];
}; };
}; };