maverick: migrate to sfp interface #867
No files matched your search
@@ -58,10 +58,10 @@
|
||||
defaultGateway.address = "10.64.50.1";
|
||||
|
||||
interfaces = {
|
||||
enp3s0 = {
|
||||
enp5s0f1np1 = {
|
||||
ipv4 = {
|
||||
addresses = [{
|
||||
address = "10.64.50.26";
|
||||
address = "10.64.50.30";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
## Setup but don't enable tang, that depends on the device's location
|
||||
custom.tang = {
|
||||
networkingModule = "r8169";
|
||||
networkingModule = "i40e";
|
||||
secretFile = "/data/disk_encryption.jwe";
|
||||
devices = [ "disk0-crypt" "disk1-crypt" ];
|
||||
};
|
||||
@@ -43,9 +43,9 @@
|
||||
(lib.mkIf config.custom.tang.enable {
|
||||
boot.kernelParams =
|
||||
let
|
||||
ifcfg = builtins.head config.networking.interfaces.enp3s0.ipv4.addresses;
|
||||
ifcfg = builtins.head config.networking.interfaces.enp5s0f1np1.ipv4.addresses;
|
||||
in
|
||||
[ "ip=${ifcfg.address}::${config.networking.defaultGateway.address}:255.255.255.0:${config.networking.hostName}:enp3s0:none" ];
|
||||
[ "ip=${ifcfg.address}::${config.networking.defaultGateway.address}:255.255.255.0:${config.networking.hostName}:enp5s0f1np1:none" ];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
@@ -242,12 +242,6 @@
|
||||
hwAddress = "00:c0:b7:6b:f4:34";
|
||||
dhcpReservation = true;
|
||||
};
|
||||
"26" = {
|
||||
hostname = "maverick";
|
||||
fqdn = "maverick.cx.${config.ogygia.domain}";
|
||||
hwAddress = "38:05:25:34:02:34";
|
||||
dhcpReservation = true;
|
||||
};
|
||||
"27" = {
|
||||
hostname = "phoenix";
|
||||
fqdn = "phoenix.st.${config.ogygia.domain}";
|
||||
@@ -266,6 +260,12 @@
|
||||
hwAddress = "7c:83:34:be:30:dd";
|
||||
dhcpReservation = true;
|
||||
};
|
||||
"30" = {
|
||||
hostname = "maverick";
|
||||
fqdn = "maverick.cx.${config.ogygia.domain}";
|
||||
hwAddress = "38:05:25:34:02:37";
|
||||
dhcpReservation = true;
|
||||
};
|
||||
};
|
||||
portForwarding = [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user