Benjamin Yule Bädorf
f7eaef0d18
Reviewed-on: #129 Reviewed-by: Hendrik Sokolowski <hensoko@noreply.git.pub.solar> Co-authored-by: Benjamin Yule Bädorf <git@benjaminbaedorf.eu> Co-committed-by: Benjamin Yule Bädorf <git@benjaminbaedorf.eu>
30 lines
721 B
Nix
30 lines
721 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
flake,
|
|
... }:
|
|
{
|
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/flora6-wg-private-key.age";
|
|
|
|
networking.wireguard.interfaces = {
|
|
wg-ssh = {
|
|
listenPort = 51820;
|
|
mtu = 1300;
|
|
ips = [
|
|
"10.7.6.2/32"
|
|
"fd00:fae:fae:fae:fae:2::/96"
|
|
];
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
|
peers = flake.self.logins.admins.wireguardDevices ++ [
|
|
{
|
|
endpoint = "nachtigall.pub.solar:51820";
|
|
publicKey = "qzNywKY9RvqTnDO8eLik75/SHveaSk9OObilDzv+xkk=";
|
|
allowedIPs = [ "10.7.6.1/32" "fd00:fae:fae:fae:fae:1::/96" ];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|