This commit is contained in:
transcaffeine 2025-04-13 12:00:23 +02:00
parent a2c3d48fed
commit 57de1d9bba
Signed by: transcaffeine
GPG key ID: 03624C433676E465
4 changed files with 48 additions and 1 deletions

View file

@ -24,7 +24,8 @@
};
systemd = {
enable = true;
network = config.systemd.network;
network.enable = true;
network.networks.enp1s0 = config.systemd.network.networks.enp1s0;
targets.initrd.wants = [
"systemd-networkd-wait-online@enp1s0.service"
];
@ -40,6 +41,11 @@
kernelModules = [ "kvm-intel" ];
kernelParams = [
"zfs.zfs_arc_max=1024000000"
"intel_iommu=on"
"pci=assign-busses"
];
# extraModprobeConfig = ''
# options ixgbe max_vfs=4 allow_unsupported_sfp=1 debug=2
# '';
};
}

View file

@ -22,6 +22,8 @@
git
tmux
htop
pciutils
ethtool
];
users.users.root = {

View file

@ -9,11 +9,43 @@
systemd.network = {
enable = true;
links = {
"enp1s0" = {
enable = true;
matchConfig = {
Type = "ether";
MACAddress = "9c:6b:00:8d:d0:8f";
};
linkConfig = {
Name = "enp1s0";
NamePolicy = "";
};
};
"enp2s0f0" = {
enable = true;
matchConfig = {
Type = "ether";
MACAddress = "90:e2:ba:2e:ea:70";
};
linkConfig.MTUBytes = "9710";
};
"enp2s0f1" = {
enable = true;
matchConfig = {
Type = "ether";
MACAddress = "90:e2:ba:2e:ea:71";
};
linkConfig.MTUBytes = "9710";
};
};
networks = {
"enp1s0" = {
matchConfig.Name = "enp1s0";
DHCP = "yes";
};
};
netdevs = {
};
};
}

View file

@ -0,0 +1,7 @@
{config, pkgs, ...}:
{
# services.radvd.enable = true;
# services.radvd.config = ''
# interface br-infra
# '';
}