fixup toaster network
This commit is contained in:
parent
a31fff4a8e
commit
0457c44807
10 changed files with 207 additions and 292 deletions
34
hosts/toaster/network/dumpdvb.nix
Normal file
34
hosts/toaster/network/dumpdvb.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ config, ... }: {
|
||||
systemd.network = {
|
||||
# Wireguard
|
||||
# Dump-dvb
|
||||
netdevs."30-wg-dumpdvb" = {
|
||||
netdevConfig = {
|
||||
Kind = "wireguard";
|
||||
Name = "wg-dumpdvb";
|
||||
Description = "dvb.solutions enterprise network";
|
||||
};
|
||||
wireguardConfig = {
|
||||
PrivateKeyFile = config.sops.secrets."wg/dvb".path;
|
||||
};
|
||||
wireguardPeers = [
|
||||
{
|
||||
PublicKey = "WDvCObJ0WgCCZ0ORV2q4sdXblBd8pOPZBmeWr97yphY=";
|
||||
Endpoint = "academicstrokes.com:51820";
|
||||
AllowedIPs = [ "10.13.37.0/24" ];
|
||||
PersistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
networks."30-wg-dumpdvb" = {
|
||||
matchConfig.Name = "wg-dumpdvb";
|
||||
networkConfig = {
|
||||
Address = "10.13.37.3/24";
|
||||
IPv6AcceptRA = true;
|
||||
};
|
||||
routes = [
|
||||
{ Gateway = "10.13.37.1"; Destination = "10.13.37.0/24"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue