forked from wurzel/fruitbasket
network: init ese wireguard
This commit is contained in:
parent
e80eb649ca
commit
0d9bd777c8
2 changed files with 35 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
sops.secrets."wg-ese" = { };
|
||||
networking = {
|
||||
# portunus module does weird things to this, so we force it to some sane values
|
||||
hosts = {
|
||||
|
@ -44,4 +45,35 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
netdevs."30-wireguard-ese" = {
|
||||
netdevConfig = {
|
||||
Kind = "wireguard";
|
||||
Name = "wg0";
|
||||
};
|
||||
wireguardConfig = {
|
||||
PrivateKeyFile = config.sops.secrets."wg-ese".path;
|
||||
ListenPort = 10000;
|
||||
RouteTable = "main";
|
||||
RouteMetric = 30;
|
||||
};
|
||||
wireguardPeers = [
|
||||
{
|
||||
PublicKey = "";
|
||||
AllowedIPs = "0.0.0.0/0";
|
||||
}
|
||||
];
|
||||
};
|
||||
networks."30-wireguard-ese" = {
|
||||
matchConfig.Name = "wg0";
|
||||
addresses = [
|
||||
{
|
||||
Address = "10.20.24.1/24";
|
||||
# AddPrefixRoute = false;
|
||||
}
|
||||
];
|
||||
# networkConfig = {
|
||||
# DNSSEC = false;
|
||||
# BindCarrier = [ "ens3" ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue