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:
parent
5248003dfe
commit
8f66df0238
8 changed files with 202 additions and 66 deletions
41
flake.nix
41
flake.nix
|
@ -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 {};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue