mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
topology
This commit is contained in:
parent
5048fb3e79
commit
f101eb6b2e
6 changed files with 53 additions and 8 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./topology-config.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
|
|
|
|||
14
hosts/Parzival/topology-config.nix
Normal file
14
hosts/Parzival/topology-config.nix
Normal 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")];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
}: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./topology-config.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
|
|
|
|||
14
hosts/WCE-Overseer/topology-config.nix
Normal file
14
hosts/WCE-Overseer/topology-config.nix
Normal 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")];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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"]
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue