feat: convert rossby to networkd and resolved
This commit is contained in:
@@ -37,6 +37,7 @@ let
|
||||
name = host.name;
|
||||
address = host.address;
|
||||
};
|
||||
os.networkmanager.enable = false;
|
||||
os.externalInterface = host.iface;
|
||||
hpc.computeNode = true;
|
||||
# hpc.knem = true;
|
||||
@@ -49,36 +50,26 @@ let
|
||||
# '';
|
||||
|
||||
networking = {
|
||||
useNetworkd = true;
|
||||
hostName = host.name;
|
||||
useDHCP = false;
|
||||
# interfaces.enp65s0f0 = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [ {
|
||||
# address = host.address;
|
||||
# prefixLength = 24;
|
||||
# } ];
|
||||
# ipv4.routes = [ {
|
||||
# address = "10.255.242.0";
|
||||
# prefixLength = 24;
|
||||
# via = "10.255.241.100";
|
||||
# } ];
|
||||
# };
|
||||
interfaces."${host.iface}" = {
|
||||
useDHCP = false;
|
||||
ipv4.addresses = [ {
|
||||
address = host.address;
|
||||
prefixLength = 24;
|
||||
} ];
|
||||
};
|
||||
# interfaces."ibp1s0.7666" = {
|
||||
# interfaces."ibp1s0" = {
|
||||
# useDHCP = false;
|
||||
# ipv4.addresses = [ {
|
||||
# address = host.ipoib;
|
||||
# prefixLength = 24;
|
||||
# } ];
|
||||
# };
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
networks = {
|
||||
"40-${host.iface}" = {
|
||||
matchConfig.Name = host.iface;
|
||||
address = [ "${host.address}/24" ];
|
||||
routes = [ { Gateway = "172.16.239.1"; } ];
|
||||
};
|
||||
# "ibp1s0.7666" = {
|
||||
"45-ibp1s0" = {
|
||||
matchConfig.Name = "ibp1s0";
|
||||
address = [ "${host.ipoib}/24" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
hw
|
||||
../default.nix
|
||||
|
||||
@@ -4,9 +4,9 @@ let
|
||||
map (n: (
|
||||
rec {
|
||||
idx = 110 + n;
|
||||
iface = if n > 1 && n < 11 then "enp34s0np0" else "enp33s0np0";
|
||||
iface = if n > 4 && n < 11 then "enp34s0np0" else "enp33s0np0";
|
||||
name = "c0-${toString n}";
|
||||
address = "172.16.239.${toString idx}";
|
||||
ipoib = "10.1.6.${toString idx}";
|
||||
ipoib = "10.16.239.${toString idx}";
|
||||
pubkey = ./. + "/ssh_host_key.d/c0-${toString n}.pub";
|
||||
})) nodes
|
||||
|
||||
Reference in New Issue
Block a user