This commit is contained in:
Hadi
2025-01-21 20:54:37 +01:00
parent 2962bd8503
commit 4d63588ddc

View File

@@ -48,18 +48,18 @@ in {
lib.concatStringsSep ":" config.home.sessionPath lib.concatStringsSep ":" config.home.sessionPath
}" }"
''; '';
#NOTE: for btop to show gpu usage #NOTE- for btop to show gpu usage
#may want to check the driver version with: #may want to check the driver version with:
#nix path-info -r /run/current-system | grep nvidia-x11 #nix path-info -r /run/current-system | grep nvidia-x11
#and #and
#nix search nixpkgs nvidia_x11 #nix search nixpkgs nvidia_x11
sessionVariables = { sessionVariables = {
LD_LIBRARY_PATH = lib.concatStringsSep ":" [ LD_LIBRARY_PATH = lib.concatStringsSep ":" [
"${pkgs.linuxPackages_latest.nvidia_x11_beta}/lib" #change the package name according to nix search result "${pkgs.linuxPackages_latest.nvidia_x11_beta}/lib" # change the package name according to nix search result
"$LD_LIBRARY_PATH" "$LD_LIBRARY_PATH"
]; ];
}; };
shellAliases = { shellAliases = {
vim = "nvim"; vim = "nvim";