WIP
This commit is contained in:
parent
a2c3d48fed
commit
a290cacd3d
4 changed files with 50 additions and 2 deletions
|
@ -24,7 +24,8 @@
|
||||||
};
|
};
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
network = config.systemd.network;
|
network.enable = true;
|
||||||
|
network.networks.enp1s0 = config.systemd.network.networks.enp1s0;
|
||||||
targets.initrd.wants = [
|
targets.initrd.wants = [
|
||||||
"systemd-networkd-wait-online@enp1s0.service"
|
"systemd-networkd-wait-online@enp1s0.service"
|
||||||
];
|
];
|
||||||
|
@ -37,9 +38,15 @@
|
||||||
device = "/dev/disk/by-uuid/7f3ccd2d-8022-491e-baa1-675805919fd7";
|
device = "/dev/disk/by-uuid/7f3ccd2d-8022-491e-baa1-675805919fd7";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" "vfio" "vfio_pci" "vfio_iommu_type1" "vfio_virqfd" ];
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"zfs.zfs_arc_max=1024000000"
|
"zfs.zfs_arc_max=1024000000"
|
||||||
|
"intel_iommu=on"
|
||||||
|
"intel_iommu=igfx_off"
|
||||||
|
"pci=assign-busses"
|
||||||
];
|
];
|
||||||
|
# extraModprobeConfig = ''
|
||||||
|
# options ixgbe max_vfs=4 allow_unsupported_sfp=1 debug=2
|
||||||
|
# '';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
git
|
git
|
||||||
tmux
|
tmux
|
||||||
htop
|
htop
|
||||||
|
pciutils
|
||||||
|
ethtool
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.root = {
|
users.users.root = {
|
||||||
|
|
|
@ -9,11 +9,43 @@
|
||||||
|
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
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 = {
|
networks = {
|
||||||
"enp1s0" = {
|
"enp1s0" = {
|
||||||
matchConfig.Name = "enp1s0";
|
matchConfig.Name = "enp1s0";
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
netdevs = {
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
7
hosts/backstage/radvd.nix
Normal file
7
hosts/backstage/radvd.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{config, pkgs, ...}:
|
||||||
|
{
|
||||||
|
# services.radvd.enable = true;
|
||||||
|
# services.radvd.config = ''
|
||||||
|
# interface br-infra
|
||||||
|
# '';
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue