nix-config/hosts/dishwasher/oxalab.nix

34 lines
812 B
Nix
Raw Normal View History

2022-06-18 11:49:27 +02:00
{ config, ... }:
{
2022-06-18 11:57:32 +02:00
networking.wireguard.enable = true;
2022-06-18 11:49:27 +02:00
systemd.network = {
netdevs."oxalab" = {
netdevConfig = {
Kind = "wireguard";
Name = "oxalab";
Description = "oxa's enterprise network";
};
wireguardConfig = {
PrivateKeyFile = config.sops.secrets."wg/oxalab-seckey".path;
};
wireguardPeers = [
{
# cirrus
wireguardPeerConfig = {
PublicKey = "5nCVC21BL+1r70OGwA4Q6Z/gcPLC3+ZF8sTurdn7N0E=";
AllowedIPs = [ "10.66.66.0/24" ];
Endpoint = [ "95.216.166.21:51820" ];
PersistentKeepalive = 25;
};
}
];
};
networks."oxalab" = {
matchConfig.Name = "oxalab";
networkConfig = {
2022-06-18 17:09:07 +02:00
Address = "10.66.66.100/32";
2022-06-18 11:49:27 +02:00
};
};
};
}