many changes and more modularizing

This commit is contained in:
2024-12-12 22:30:24 +01:00
parent df50e70f3e
commit c96c24f864
109 changed files with 20900 additions and 278 deletions

View File

@@ -1,4 +1,4 @@
{ ... }: {
{ config, ... }: {
networking = {
vlans = {
setup = {
@@ -10,7 +10,7 @@
interfaces = {
setup = {
ipv4.addresses = [{
address = "10.42.110.1";
address = "${config.networkPrefix}.110.1";
prefixLength = 24;
}];
};
@@ -28,15 +28,15 @@
{
pools = [
{
pool = "10.42.110.100 - 10.42.110.240";
pool = "${config.networkPrefix}.110.100 - ${config.networkPrefix}.110.240";
}
];
subnet = "10.42.110.0/24";
subnet = "${config.networkPrefix}.110.0/24";
interface = "setup";
option-data = [
{
name = "routers";
data = "10.42.110.1";
data = "${config.networkPrefix}.110.1";
}
{
name = "domain-name";
@@ -48,7 +48,7 @@
}
{
name = "domain-name-servers";
data = "10.42.97.1";
data = "${config.networkPrefix}.97.1";
}
];
}