diff --git a/systems/x86_64-linux/drivebystation-nix/hardware/graphics/passthrough_nvidia.nix b/systems/x86_64-linux/drivebystation-nix/hardware/graphics/passthrough_nvidia.nix index c16f69e..8d42797 100644 --- a/systems/x86_64-linux/drivebystation-nix/hardware/graphics/passthrough_nvidia.nix +++ b/systems/x86_64-linux/drivebystation-nix/hardware/graphics/passthrough_nvidia.nix @@ -20,19 +20,19 @@ boot.initrd.systemd = { enable = true; services.initrd-vfio-pci-nvidia = { - - description = "vfio-pci predevice init"; - wantedBy = [ "initrd.target" ]; - # Match 'preDeviceCommands' by running early - before = [ "sysroot.mount" ]; - - unitConfig.DefaultDependencies = "no"; - serviceConfig.Type = "oneshot"; - - # Place your original shell commands here - script = '' - modprobe vfio-pci - ''; + description = "vfio-pci predevice init"; + wantedBy = [ "initrd.target" ]; + # Match 'preDeviceCommands' by running early + before = [ "sysroot.mount" ]; + + unitConfig.DefaultDependencies = "no"; + serviceConfig.Type = "oneshot"; + + # Place your original shell commands here + script = '' + modprobe vfio-pci + ''; + } }; # # EARLY and deterministic binding # boot.initrd.preDeviceCommands = ''