Do you know how I would declare a type to be envVar
? I know a path you can do e.g. ./. + "path/path"
. But I can’t figure out envVar
nix-repl> builtins.typeOf (pkgs.lib.concatStringsSep ":" ["Path" "path"])
"string"
Alas, currently I don’t think this would work in this case since If I try another type I get
error: A definition for option `home.sessionVariables.LD_LIBRARY_PATH' is not of type `string or path or signed integer or floating point number'.
Currently I need it for my android module
LD_LIBRARY_PATH = "${pkgs.libglvnd}/lib";
For the emulator to work on my gpu. Related to this issue Segmentation fault running Android emulator provided by androidenv.composeAndroidPackages · Issue #219745 · NixOS/nixpkgs · GitHub
In the past I needed it for cuda/nvidia
LD_LIBRARY_PATH= [
"${pkgs.linuxPackages.nvidia_x11}/lib"
"${pkgs.cudatoolkit}/lib64"
"${pkgs.cudatoolkit}/lib" # 32 bit
"${pkgs.cudaPackages.cudnn}/lib"
];
and for some python packages installed through nixos conda
LD_LIBRARY_PATH = "${pkgs.glib.out}/lib"