diff options
| author | Fuwn <[email protected]> | 2024-10-01 06:17:12 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-01 06:17:12 -0700 |
| commit | 1422c6d330133fc8f382b43cb815a24d15dc651d (patch) | |
| tree | 59a4b7a11783775af63f24aa18344b77fe43822f /modules/desktop/variables.nix | |
| parent | modules: move emulated systems to extended nix configuration (diff) | |
| download | nixos-config-1422c6d330133fc8f382b43cb815a24d15dc651d.tar.xz nixos-config-1422c6d330133fc8f382b43cb815a24d15dc651d.zip | |
modules: move variables and initrd systemd to pc
Diffstat (limited to 'modules/desktop/variables.nix')
| -rw-r--r-- | modules/desktop/variables.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/desktop/variables.nix b/modules/desktop/variables.nix new file mode 100644 index 0000000..3d50fdf --- /dev/null +++ b/modules/desktop/variables.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + environment.variables = { + LIBVA_DRIVER_NAME = "nvidia"; + __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + GBM_BACKEND = "nvidia-drm"; + __VK_LAYER_NV_optimus = "NVIDIA_only"; + __NV_PRIME_RENDER_OFFLOAD = "1"; + NVD_BACKEND = "direct"; + CUDA_PATH = "${pkgs.cudatoolkit}"; + }; +} |