use old networking file

cephiroth-v3
Lzebulon 2026-01-26 23:04:46 +01:00
parent 01b78dd455
commit a034ba2955
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
2 changed files with 50 additions and 15 deletions

View File

@ -3,6 +3,7 @@
{
imports = [
./hardware-configuration.nix
./networking.nix
];
networking.hostId = "121cdcb4";
@ -29,25 +30,10 @@
networking = {
id = 3;
adm = {
enable = true;
interface = "bond0";
};
srvNat = {
enable = true;
interface = "bond0";
};
};
resticClient.enable = false;
};
networking = {
bonds.bond0 = {
interfaces = [ "enp11s0f0" "enp11s0f1" ];
driverOptions.mode = "802.3ad";
};
};
system.stateVersion = "24.05";
}

View File

@ -0,0 +1,49 @@
{ ... }:
{
networking = {
dhcpcd.enable = false;
vlans = {
srv-nat = {
id = 3;
interface = "bond0";
};
adm = {
id = 10;
interface = "bond0";
};
};
bonds.bond0 = {
interfaces = [ "enp11s0f0" "enp11s0f1" ];
driverOptions.mode = "802.3ad";
};
interfaces = {
srv-nat = {
ipv4 = {
addresses = [
{
address = "172.16.3.3";
prefixLength = 24;
}
];
};
};
adm = {
ipv4 = {
addresses = [
{
address = "172.16.10.3";
prefixLength = 24;
}
];
};
};
};
defaultGateway = "172.16.3.99";
nameservers = [ "172.16.10.128" ];
};
}