nixos-config/machines/chungus/topology.nix

33 lines
633 B
Nix
Raw Normal View History

2024-08-30 12:34:57 +02:00
{ config, ... }:
with config.lib.topology;
{
topology.self = {
2024-08-31 03:33:08 +02:00
interfaces.eth0 = {
2024-08-30 12:34:57 +02:00
network = "home";
};
interfaces.wg0 = {
addresses = [ "10.100.0.2" ];
network = "wg0";
2024-08-31 03:33:08 +02:00
type = "wireguard";
2024-08-30 12:34:57 +02:00
virtual = true;
};
interfaces.ztbn67ogn2 = {
2024-08-31 03:33:08 +02:00
network = "zerotier";
# type = "zerotier";
2024-08-30 12:34:57 +02:00
virtual = true;
};
interfaces."tinc.private" = {
network = "tinc.private";
2024-08-31 03:33:08 +02:00
# type = "tinc";
2024-08-30 12:34:57 +02:00
virtual = true;
};
interfaces."tinc.retiolum" = {
network = "tinc.retiolum";
2024-08-31 03:33:08 +02:00
# type = "tinc";
2024-08-30 12:34:57 +02:00
virtual = true;
};
};
}