hosts: virqfd isn't a module anymore, restart vswitch after update

This commit is contained in:
2023-02-26 10:21:26 +01:00
parent 4e4917be51
commit d0b7116176
3 changed files with 12 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vfio_virqfd" ];
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
boot.initrd.secrets = {
"/root/NASKeyfile" =
/root/NASKeyfile;
@@ -226,6 +226,11 @@
# #allowedTCPPorts = [ 53 80 443 9443 ];
#};
};
systemd.services = {
ovs-vswitchd.partOf = [ "network-setup.service" ];
};
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
powerManagement = {
cpuFreqGovernor = lib.mkDefault "powersave";