feat(topology): add more devices from my home

This commit is contained in:
oddlama 2024-04-04 14:05:29 +02:00
parent ed729c4073
commit 5604cdd4cc
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
7 changed files with 34 additions and 23 deletions

6
flake.lock generated
View file

@ -1012,11 +1012,11 @@
"pre-commit-hooks": "pre-commit-hooks_3" "pre-commit-hooks": "pre-commit-hooks_3"
}, },
"locked": { "locked": {
"lastModified": 1712186793, "lastModified": 1712231666,
"narHash": "sha256-ZEXCm57Mvs3B2E6OlaZ+j+tyd+vuubP/aL1Rn09kSek=", "narHash": "sha256-SlgbQyccioWkep10dwtJ4WBZT3FpgwC0LnCBbm3rz7Y=",
"owner": "oddlama", "owner": "oddlama",
"repo": "nix-topology", "repo": "nix-topology",
"rev": "c2092f877d67bfacc8f8a403db72b7bf61a6db4d", "rev": "a2e2a95a1b10ad93600351a6595c35ff1826ac8f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,11 +8,11 @@
mkConnection mkConnection
; ;
in { in {
imports = [ networks.ward-kea.name = "Home LAN";
{ networks.home-fritzbox = {
nodes.fritzbox.interfaces.eth1.network = "home-fritzbox"; name = "Home Fritzbox";
} cidrv4 = "192.168.178.0/24";
]; };
nodes.internet = mkInternet { nodes.internet = mkInternet {
connections = [ connections = [
@ -29,15 +29,12 @@ in {
["wan1"] ["wan1"]
]; ];
connections.eth1 = mkConnection "ward" "wan"; connections.eth1 = mkConnection "ward" "wan";
interfaces.eth1.addresses = ["192.168.178.1"]; interfaces.eth1 = {
addresses = ["192.168.178.1"];
network = "home-fritzbox";
};
}; };
networks.home-fritzbox = {
name = "Home Fritzbox";
cidrv4 = "192.168.178.0/24";
};
networks.ward-kea.name = "Home LAN";
nodes.switch-attic = mkSwitch "Switch Attic" { nodes.switch-attic = mkSwitch "Switch Attic" {
info = "D-Link DGS-1016D"; info = "D-Link DGS-1016D";
image = ./images/dlink-dgs1016d.png; image = ./images/dlink-dgs1016d.png;
@ -57,21 +54,35 @@ in {
}; };
nodes.switch-livingroom = mkSwitch "Switch Livingroom" { nodes.switch-livingroom = mkSwitch "Switch Livingroom" {
info = "D-Link DGS-105"; info = "Sitecom LN-121";
image = ./images/dlink-dgs105.png; image = ./images/sitecom-ln-121.png;
interfaceGroups = [["eth1" "eth2" "eth3" "eth4" "eth5"]]; interfaceGroups = [["eth1" "eth2" "eth3" "eth4"]];
connections.eth2 = mkConnection "tv-livingroom" "eth1"; connections.eth2 = mkConnection "tv-livingroom" "eth1";
connections.eth3 = mkConnection "soundbar-livingroom" "eth1";
connections.eth4 = mkConnection "sat-receiver-livingroom" "eth1";
}; };
nodes.tv-livingroom = mkDevice "Livingroom TV" { nodes.tv-livingroom = mkDevice "TV Livingroom" {
# TODO info info = "LG OLED65B6D";
# image = ./images/epson-xp-7100.png; image = ./images/lg-oled65b6d.png;
interfaces.eth1 = {};
};
nodes.soundbar-livingroom = mkDevice "Soundbar Livingroom" {
info = "Bose SoundTouch 300";
image = ./images/bose-soundtouch-300.png;
interfaces.eth1 = {};
};
nodes.sat-receiver-livingroom = mkDevice "Sat Receiver Livingroom" {
info = "TechniSat DIGIT ISIO STC+";
image = ./images/technisat-digit-isio-stcplus.png;
interfaces.eth1 = {}; interfaces.eth1 = {};
}; };
nodes.ruckus-ap = mkSwitch "Wi-Fi AP" { nodes.ruckus-ap = mkSwitch "Wi-Fi AP" {
info = "Ruckus R500"; info = "Ruckus R600";
image = ./images/ruckus-r500.png; image = ./images/ruckus-r600.png;
interfaceGroups = [["eth1" "wifi"]]; interfaceGroups = [["eth1" "wifi"]];
connections.eth1 = mkConnection "switch-attic" "eth4"; connections.eth1 = mkConnection "switch-attic" "eth4";
}; };

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

View file

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB