This commit is contained in:
TheWanderingCrow 2025-03-21 13:21:13 +00:00
parent 5048fb3e79
commit f101eb6b2e
6 changed files with 53 additions and 8 deletions

View file

@ -49,7 +49,8 @@
[
./hosts/Parzival
]
++ baseModules;
++ baseModules
++ topology;
};
###################
# Personal Laptop #
@ -148,6 +149,7 @@
{
nixosConfigurations = {
WCE-Overseer = self.nixosConfigurations.WCE-Overseer;
Parzival = self.nixosConfigurations.Parzival;
};
}
];

View file

@ -6,6 +6,7 @@
}: {
imports = [
./hardware-configuration.nix
./topology-config.nix
../../modules
];

View file

@ -0,0 +1,14 @@
{config, ...}: let
inherit (config.lib.topology) mkInternet mkRouter mkConnection;
in {
topology.self = {
hardware.info = "Primary Desktop";
interfaces = {
wlan0 = {
addresses = ["192.168.141.1"];
network = "home";
physicalConnections = [(mkConnection "router" "wlan0")];
};
};
};
}

View file

@ -6,6 +6,7 @@
}: {
imports = [
./hardware-configuration.nix
./topology-config.nix
../../modules
];

View file

@ -0,0 +1,14 @@
{config, ...}: let
inherit (config.lib.topology) mkInternet mkRouter mkConnection;
in {
topology.self = {
hardware.info = "ThinkCentre M710q";
interfaces = {
eth0 = {
addresses = ["192.168.0.30"];
network = "home";
physicalConnections = [(mkConnection "router" "eth3")];
};
};
};
}

View file

@ -2,13 +2,25 @@
inherit (config.lib.topology) mkInternet mkRouter mkConnection;
in {
# Define networks/nodes here
networks.home = {
name = "Home Network";
cidrv4 = "192.168.0.0/16";
style = {
primaryColor = "#69398b";
secondaryColor = "#9277ae";
pattern = "solid";
networks = {
home = {
name = "Home Network";
cidrv4 = "192.168.0.0/16";
style = {
primaryColor = "#69398b";
secondaryColor = "#9277ae";
pattern = "solid";
};
};
wce-networks = {
name = "WCE AWS VPC";
cidrv4 = "172.31.0.0/16";
cidrv6 = "2600:1f18:22fc:c200::/56";
style = {
primaryColor = "#FF9900";
secondaryColor = "#FF9900";
pattern = "solid";
};
};
};
@ -21,6 +33,7 @@ in {
interfaceGroups = [
["wan1"]
["eth1" "eth2" "eth3" "eth4"]
["wlan0"]
];
};
}