mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 03:52:10 +02:00
move LD_LIBRARY_PATH
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> Former-commit-id: 5a35789f8cc7009e3310d49b27381b84aca0a475
This commit is contained in:
@@ -29,18 +29,6 @@ in {
|
|||||||
}"
|
}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# CHANGEME: for btop to show gpu usage
|
|
||||||
#may want to check the driver version with:
|
|
||||||
#nix path-info -r /run/current-system | grep nvidia-x11
|
|
||||||
#and
|
|
||||||
#nix search nixpkgs nvidia_x11
|
|
||||||
sessionVariables = {
|
|
||||||
LD_LIBRARY_PATH = lib.concatStringsSep ":" [
|
|
||||||
"${pkgs.linuxPackages_latest.nvidia_x11_beta}/lib" # change the package name according to nix search result
|
|
||||||
"$LD_LIBRARY_PATH"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
|
|||||||
@@ -94,6 +94,15 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
sessionVariables = {
|
||||||
|
LD_LIBRARY_PATH = lib.concatStringsSep ":" [
|
||||||
|
"$LD_LIBRARY_PATH"
|
||||||
|
"${nvidiaDriverChannel}/lib" # change the package name according to nix search result
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Additional useful packages
|
# Additional useful packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vulkan-tools
|
vulkan-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user