feat: convert rossby to networkd and resolved

This commit is contained in:
2025-10-09 20:46:41 +02:00
parent 88a72088f1
commit 670c75953d
8 changed files with 84 additions and 59 deletions

View File

@@ -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