diff options
| author | Fuwn <[email protected]> | 2024-09-17 00:45:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-17 00:45:53 -0700 |
| commit | a73e4b8ee818b99998fd47b703fc72e376784699 (patch) | |
| tree | 559ff6fd61c6c76a3c244849fcb82efda14d4c47 | |
| parent | just: allow unfree nixpkgs (diff) | |
| download | nixos-config-a73e4b8ee818b99998fd47b703fc72e376784699.tar.xz nixos-config-a73e4b8ee818b99998fd47b703fc72e376784699.zip | |
variables: CUDA_PATH
| -rw-r--r-- | modules/software/variables.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/software/variables.nix b/modules/software/variables.nix index 7e9b794..db06919 100644 --- a/modules/software/variables.nix +++ b/modules/software/variables.nix @@ -1,3 +1,4 @@ +{ pkgs, ... }: { environment.variables = { # OpenGL @@ -46,6 +47,7 @@ __VK_LAYER_NV_optimus = "NVIDIA_only"; __NV_PRIME_RENDER_OFFLOAD = "1"; NVD_BACKEND = "direct"; + CUDA_PATH = "${pkgs.cudatoolkit}"; # Fcitx # https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland |