fix broken syntax

This commit is contained in:
2026-04-22 03:35:15 +02:00
parent 631b28d399
commit 01a512e3fd

View File

@@ -20,19 +20,19 @@
boot.initrd.systemd = { boot.initrd.systemd = {
enable = true; enable = true;
services.initrd-vfio-pci-nvidia = { services.initrd-vfio-pci-nvidia = {
description = "vfio-pci predevice init";
description = "vfio-pci predevice init"; wantedBy = [ "initrd.target" ];
wantedBy = [ "initrd.target" ]; # Match 'preDeviceCommands' by running early
# Match 'preDeviceCommands' by running early before = [ "sysroot.mount" ];
before = [ "sysroot.mount" ];
unitConfig.DefaultDependencies = "no";
unitConfig.DefaultDependencies = "no"; serviceConfig.Type = "oneshot";
serviceConfig.Type = "oneshot";
# Place your original shell commands here
# Place your original shell commands here script = ''
script = '' modprobe vfio-pci
modprobe vfio-pci '';
''; }
}; };
# # EARLY and deterministic binding # # EARLY and deterministic binding
# boot.initrd.preDeviceCommands = '' # boot.initrd.preDeviceCommands = ''