[NixOS] Remove any cdi hook

This commit is contained in:
2024-12-31 03:49:35 -07:00
parent 8453cc92b6
commit fef852f4bf

View File

@@ -11,8 +11,8 @@ makeEnable config "myModules.nvidia" false {
additionalEdit = ''
${lib.getExe pkgs.jq} '
.devices |= map(
.containerEdits.hooks |= map(select(.args | index("create-symlinks") < 0))
)' | ${lib.getExe pkgs.jq} '.containerEdits.hooks |= map(select(.args | index("create-symlinks") < 0 ))' '';
.containerEdits.hooks |= map(select(.args | index("nvidia-cdi-hook") < 0))
)' | ${lib.getExe pkgs.jq} '.containerEdits.hooks |= map(select(.args | index("nvidia-cdi-hook") < 0 ))' '';
};
hardware.nvidia.open = true;
hardware.graphics.enable32Bit = true;