add cuda support for appimage

This commit is contained in:
illustris 2025-12-03 21:47:33 +05:30
parent 09e6f82ba3
commit aa8873d9c9
Signed by: illustris
GPG Key ID: 56C8FC0B899FEFA3

View File

@ -79,6 +79,8 @@
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
extra-trusted-public-keys = [ "flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs=" ];
extra-trusted-substituters = [ "https://cache.flox.dev" ];
trusted-users = [ "root" "illustris" ]; trusted-users = [ "root" "illustris" ];
}; };
}; };
@ -108,7 +110,10 @@
"cuda_cudart" "cuda_cudart"
"cuda_cupti" "cuda_cupti"
"cuda_cuxxfilt" "cuda_cuxxfilt"
"cudnn"
"displaylink" "displaylink"
"libcufile"
"libcusparse_lt"
"nvidia-persistenced" "nvidia-settings" "nvidia-x11" "nvidia-persistenced" "nvidia-settings" "nvidia-x11"
"steam" "steam-original" "steam-run" "steam-unwrapped" "steam" "steam-original" "steam-run" "steam-unwrapped"
"zerotierone" "zerotierone"
@ -118,7 +123,19 @@
programs = { programs = {
adb.enable = true; adb.enable = true;
appimage.enable = true; appimage = {
enable = true;
binfmt = true;
package = pkgs.appimage-run.override {
extraPkgs = pkgs: [
pkgs.icu
pkgs.libxcrypt-legacy
pkgs.python3
pkgs.python3Packages.torch
];
};
};
bash = { bash = {
interactiveShellInit = '' interactiveShellInit = ''
export HISTSIZE=-1 HISTFILESIZE=-1 HISTCONTROL=ignoreboth:erasedups export HISTSIZE=-1 HISTFILESIZE=-1 HISTCONTROL=ignoreboth:erasedups