mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 14:50:40 +02:00
feat(topology): add network edge colors
This commit is contained in:
parent
ecaea9b906
commit
59ca21850b
4 changed files with 49 additions and 11 deletions
15
flake.nix
15
flake.nix
|
@ -218,6 +218,21 @@
|
|||
];
|
||||
};
|
||||
|
||||
# TODO: extract from kea!
|
||||
networks.home-lan = {
|
||||
name = "Home LAN";
|
||||
cidrv4 = "192.168.1.0/24";
|
||||
color = "#78dba9";
|
||||
};
|
||||
networks.home-fritzbox = {
|
||||
name = "Home Fritzbox";
|
||||
cidrv4 = "192.168.178.0/24";
|
||||
color = "#f1cf8a";
|
||||
};
|
||||
nodes.ward.interfaces.lan.network = "home-lan";
|
||||
nodes.ward.interfaces.wan.network = "home-fritzbox";
|
||||
nodes.fritzbox.interfaces.eth0.network = "home-fritzbox";
|
||||
|
||||
nodes.switch-attic = {
|
||||
name = "Switch Attic";
|
||||
deviceType = "switch";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue