-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtopology.nix
More file actions
38 lines (34 loc) · 1.06 KB
/
Copy pathtopology.nix
File metadata and controls
38 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
# Infrastructure topology configuration
# Reference: https://github.com/oddlama/nix-topology
#
# This file defines the global network topology for visualization.
# nix-topology automatically extracts:
# - Network interfaces from systemd-networkd
# - Services from NixOS configuration
# - Network information from kea
#
# You can manually add:
# - Physical connections between nodes
# - Networks and their assignments
# - External devices (switches, routers, printers, etc.)
# Example: Define a home network
# networks.home = {
# name = "Home Network";
# cidrv4 = "192.168.1.0/24";
# };
# Example: Connect nodes physically
# nodes.default.interfaces.eth0.physicalConnections = [
# { node = "test-vm"; interface = "eth0"; }
# ];
# Example: Assign interface to network
# nodes.default.interfaces.eth0.network = "home";
# Example: Add external devices
# devices.internet = {
# name = "Internet";
# icon = "internet";
# };
# nodes.default.interfaces.wan.physicalConnections = [
# { device = "internet"; }
# ];
}