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

feat(toplogy): add png and jpg image rendering; add iamge-name small cards

This commit is contained in:
oddlama 2024-03-21 16:31:51 +01:00
parent 5248003dfe
commit 8f66df0238
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
8 changed files with 202 additions and 66 deletions

View file

@ -186,6 +186,47 @@
{
renderer = "d2";
nixosConfigurations = self.nodes;
nodes.fritzbox = {
name = "FritzBox";
deviceType = "router";
hardware.image = ./fritzbox.png;
# interfaces.wan0.network = "internet";
interfaces.wan0.physicalConnections = [
{
node = "ward";
interface = "wan";
}
];
};
nodes.fritzbox-no-img = {
name = "FritzBox No HImg";
deviceType = "router";
interfaces.wan0.physicalConnections = [
{
node = "ward";
interface = "wan";
}
];
};
nodes.fritzbox-device = {
name = "FritzBox No D&HImg";
deviceType = "device";
interfaces.wan0.physicalConnections = [
{
node = "ward";
interface = "wan";
}
];
};
# TODO:
#nodes.fritzbox = config.lib.nodes.mkRouter {};
#nodes.fritzbox = config.lib.nodes.mkSwitch {};
#nodes.fritzbox = config.lib.nodes.mkWifiAP {};
#nodes.printer = config.lib.nodes.mkWifiAP {};
}
];
};