1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

fix(topology): work around network propagator not knowing about mkMerge

This commit is contained in:
oddlama 2024-04-01 15:49:04 +02:00
parent 1d207e0fd2
commit beb50045b4
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 26 additions and 27 deletions

View file

@ -1,3 +1,22 @@
## TODO
- macvtap interface type svg with small link
- address port label render make newline capable (multiple port labels)
- NAT indication
- embed font globally, try removing satori embed?
- network centric view as standalone
- make rectpacking of childs
- podman / docker harvesting
- nixos-container extractor
- disks (from disko) + render
- impermanence render?
- nixos nftables firewall render?
- search todo and do
- the network propagator based on options.nodes cannot deal with mkMerge and mkIf stuff currently
## Options
## Renderers

View file

@ -29,6 +29,8 @@ in {
cidrv4 = subnet;
};
topology.self.interfaces = genAttrs interfaces (const {network = netName;});
# Do not use topology.self.interfaces here to prevent inclusion of a mkMerge which cannot be
# detected by the network propagator currently.
topology.nodes.${config.topology.id}.interfaces = genAttrs interfaces (const {network = netName;});
};
}

View file

@ -163,7 +163,7 @@
# Edge in network-centric view
(optionalAttrs (interface.network != null) (
mkEdge ("children.network." + idForInterface node interface.id) "children.network.children.net:${interface.network}.ports.default" false {
mkEdge ("children.network." + idForInterface node interface.id) "children.network.children.net:${interface.network}.ports.default" interface.virtual {
style = pathStyleFromNetworkStyle config.networks.${interface.network}.style;
}
))

View file

@ -1,19 +1,3 @@
# TODO:
# - macvtap interface type svg with small link
# - address port label render make newline capable (multiple port labels)
# - NAT indication
# - embed font globally, try removing satori embed?
# - network overview card (list all networks with name and cidr, legend style)
# - network centric view as standalone
# - split network layout or make rectpacking of childs
# - more service info
# - disks (from disko) + render
# - impermanence render?
# - nixos nftables firewall render?
# - podman / docker harvesting
# - systemd extractor remove cidr mask
# - nixos-container extractor
# - search todo and do
{
config,
lib,