feat: blender offload and cuda

This commit is contained in:
danny 2025-08-22 11:15:14 +08:00
parent 80d61892b3
commit 42a59f094b
7 changed files with 25 additions and 131 deletions

View file

@ -197,7 +197,11 @@ in
environment.systemPackages = with pkgs; [
rustdesk
blender
((blender.override { cudaSupport = true; }).overrideAttrs (prev: {
postInstall = ''
sed -i 's|Exec=blender %f|Exec=/run/current-system/sw/bin/nvidia-offload blender %f|' $out/share/applications/blender.desktop
'';
}))
];
services.openssh = {
@ -215,5 +219,4 @@ in
];
};
};
}